Created
November 30, 2012 05:58
-
-
Save ymotongpoo/4174005 to your computer and use it in GitHub Desktop.
2012 PySpa advent calendar抽選
This file contains 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 | |
participants = ["ymotongpoo", | |
"shiumachi", | |
"mopemope", | |
"tk0miya", | |
"shimizukawa", | |
"kuenishi", | |
"ransui", | |
"turky", | |
"Surgo", | |
"hirokinko", | |
"tokibito", | |
"moriyoshi", | |
"rokujyouhitoma", | |
"shkumagai", | |
"a2c", | |
"jbking", | |
"tsuyukimakoto", | |
"torufurukawa", | |
"yoshiori", | |
"takabow", | |
"masahito", | |
"flagboy"] | |
random.shuffle(participants) | |
for i, p in enumerate(participants): | |
print("12/{0} {1}".format((i + 2), p)) |
This file contains 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
% python pyspa_advent.py | |
12/2 shkumagai | |
12/3 tokibito | |
12/4 torufurukawa | |
12/5 turky | |
12/6 kuenishi | |
12/7 yoshiori | |
12/8 shimizukawa | |
12/9 tsuyukimakoto | |
12/10 shiumachi | |
12/11 ransui | |
12/12 moriyoshi | |
12/13 takabow | |
12/14 rokujyouhitoma | |
12/15 masahito | |
12/16 a2c | |
12/17 tk0miya | |
12/18 jbking | |
12/19 hirokinko | |
12/20 ymotongpoo | |
12/21 flagboy | |
12/22 mopemope | |
12/23 Surgo |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
補足:akisuteとvoluntasの順番は抽選前から最初と最後で決定済み