Commit b4863bd9 by BellCodeEditor

save project

parent a09c995d
Showing with 2 additions and 2 deletions
......@@ -19,9 +19,9 @@ b=random.choice(list)
print("玩家出拳:",a)
print("电脑出拳",b)
while True:
if a==b
if a==b:
print("平局")
elif a=="剪刀" and b=="布" or a=="布" and b=="石头" or a=="石头" and b=="剪刀"
elif a=="剪刀" and b=="布" or a=="布" and b=="石头" or a=="石头" and b=="剪刀" :
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