Mercurial > repo
view bin/loudly @ 5948:70055e51bdef
<tswett> sed -i \'s/sys.stdin.read(3) or sys.argv\\[1\\]/len(sys.argv) >= 2 and sys.argv[1] or raw_input()/\' bin/loudly
author | HackBot |
---|---|
date | Sat, 29 Aug 2015 22:33:33 +0000 |
parents | ba4b9506833f |
children | f76b9b5bd985 |
line wrap: on
line source
#!/usr/bin/env python import sys, itertools inp = len(sys.argv) >= 2 and sys.argv[1] or raw_input() cyc = itertools.cycle(["\00304,09","\00309,04"]) print "".join(cyc.next() + c for c in inp)