Skip to content

Instantly share code, notes, and snippets.

@a2chub
Created September 16, 2015 05:06
Show Gist options
  • Save a2chub/6c7748eb88c92f48bd04 to your computer and use it in GitHub Desktop.
Save a2chub/6c7748eb88c92f48bd04 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
#coding:utf-8
from random import randint
import sys
team = 'ABCDEFG'
used = ""
def main():
global team, flag
now_idx = randint(0, len(team)-1)
print team[now_idx]
team = team[0: now_idx]+team[now_idx+1:]
if len(team)<1:
print "finish"
flag = False
if __name__ == '__main__':
flag = True
while flag:
main()
raw_input("next plase")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment