Created
August 23, 2013 03:02
-
-
Save cocodrips/6315135 to your computer and use it in GitHub Desktop.
二人組をランダムでつくるスクリプト
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import sys | |
argvs = sys.argv | |
members = argvs[1:] | |
random.shuffle(members) | |
for i in xrange(0,len(members)): | |
if(i%2 == 1): | |
print members[i] | |
else: | |
print members[i], | |
if len(members)%2 == 1: | |
print "teacher" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Japanes?