Commit 6b44b113 by BellCodeEditor

auto save

parent 1a3fd3db
Showing with 2 additions and 2 deletions
......@@ -3,13 +3,13 @@ while True:
player=input("请出拳:石头/剪刀/布")# 玩家出拳
print("玩家出拳:"+player)
list=['石头','剪刀','布','god']
list=['石头','剪刀','布','I am god']
a=random.choice(list)
print(a)
if player in list:
if player == a :
print("平")
elif (player=='石头' and a=='剪刀') or (player=='剪刀' and a=='布') or (player=='布' and a=='石头') or (player=='god'):
elif (player=='石头' and a=='剪刀') or (player=='剪刀' and a=='布') or (player=='布' and a=='石头') or (player=='I am god'):
print("赢")
else:
print("输")
......
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