treeList=["whyou126","awthink"]
whiteList=["Tink","geeks","webxy","microchang"]
blackList=["alexzuo","info","markmx"]
def runRand():
print "*"*5
print "*****"*30
print "-----"*20
print "@@@"*20
print "开始抽奖了哟"
for i in range(3,0,-1):
print i
time.sleep(1)
print "GO---->"
time.sleep(10)
print "抽奖结果如下:"
print "树精 2 选 1----->", treeList[random.randint(0,len(treeList)-1)]
print "白武士 4 选 1----->",whiteList[random.randint(0,len(whiteList))-1]
print "黑武士 3 选 1----->",blackList[random.randint(0,len(blackList))-1]
print "随机 5 枚幸运奖楼层----->",(random.randint(0,62),random.randint(0,62),random.randint(0,62),random.randint(0,62),random.randint(0,62))
runRand()
/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python
/
v2v2rand.py*****
******************************************************************************************************************************************************
----------------------------------------------------------------------------------------------------
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
开始抽奖了哟
3
2
1
GO---->
抽奖结果如下:
树精 2 选 1-----> awthink
白武士 4 选 1-----> microchang
黑武士 3 选 1-----> markmx
随机 5 枚幸运奖楼层-----> (25, 59, 17, 47, 56)
Process finished with exit code 0