Mercurial > repo
changeset 2363:a880b976facf
<Jafet> sed -i "s/(\' \')/()/" $(which rainwords) && rainwords <$(which rainwords)
author | HackBot |
---|---|
date | Mon, 04 Mar 2013 10:23:07 +0000 |
parents | 2153ab25037e |
children | 75c80c422f30 |
files | bin/rainwords |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/bin/rainwords Mon Mar 04 10:21:48 2013 +0000 +++ b/bin/rainwords Mon Mar 04 10:23:07 2013 +0000 @@ -1,2 +1,2 @@ #!/usr/bin/python -import random; import sys; w=sys.stdin.read().split(' '); r=[4,7,8,9,2,13,6]; s=random.randrange(0, len(r)); print ' '.join(chr(3) + str(r[(i+s)%len(r)]) + w[i] for i in range(len(w))) +import random; import sys; w=sys.stdin.read().split(); r=[4,7,8,9,2,13,6]; s=random.randrange(0, len(r)); print ' '.join(chr(3) + str(r[(i+s)%len(r)]) + w[i] for i in range(len(w)))