зеркало из https://github.com/github/pycon2011.git
raffle.py
This commit is contained in:
Родитель
b4bf267594
Коммит
d235fe95c4
|
@ -0,0 +1,11 @@
|
|||
# pip install github2
|
||||
from github2.client import Github
|
||||
|
||||
from random import choice
|
||||
|
||||
github = Github()
|
||||
repos = github.repos.network('github/pycon2011')
|
||||
|
||||
print "And the winners are..."
|
||||
print "*drumroll*"
|
||||
print "%s and %s!" % ( choice(repos)['owner'], choice(repos)['owner'] )
|
Загрузка…
Ссылка в новой задаче