Commit b049f1fc by BellCodeEditor

auto save

parent 9cc6e2ed
Showing with 3 additions and 3 deletions
......@@ -13,4 +13,4 @@ while i < 10:
else:
print("你输了")
i +1= 1
i += 1
......@@ -3,9 +3,9 @@ tj = {'胜': 0, '负': 0, '平': 0, '次数': 0}
quanList=['剪刀','石头','布']
def myGame():
while True:
myQuan=input("请出拳:")
myQuan=input("请出拳:\n")
computerQuan=random.choice(quanList)
if myQuan=='exi4t':
if myQuan=='exit':
print('下次再来玩!')
print('胜:%s 负:%s 平:%s 次数:%s'%(tj['胜'],tj['负'],tj['平'],tj['次数']))
tj['胜']=0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment