Commit 9c58f899 by BellCodeEditor

save project

parent df4f11fb
Showing with 6 additions and 3 deletions
......@@ -4,9 +4,12 @@ print("玩家出拳:"+p)
list=["石头","剪刀","布"]
x=random.choice(list)
print(x)
if p==x:
if p in list:
if p==x:
print("平")
elif p=="石头" and x=="剪刀" or p=="布" and x=="石头" or p=="剪刀" and x=="布":
elif p=="石头" and x=="剪刀" or p=="布" and x=="石头" or p=="剪刀" and x=="布":
print("赢")
else:
else:
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