Dotfiles, utilities, and other apparatus.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

stars.py 210B

12345678910111213
  1. #!/usr/bin/env python
  2. # encoding: utf-8
  3. import sys
  4. import re
  5. write = sys.stdout.write
  6. line = sys.stdin.readline()
  7. while line:
  8. stars = re.sub('\S', '★', line)
  9. write(stars)
  10. line = sys.stdin.readline()