Commit 689a1c85 by BellCodeEditor

save project

parent ef616ea1
Showing with 7 additions and 0 deletions
...@@ -4,3 +4,9 @@ print("玩家出拳"+a) ...@@ -4,3 +4,9 @@ print("玩家出拳"+a)
x=["石头","剪刀","布"] x=["石头","剪刀","布"]
m=random.choice(x) m=random.choice(x)
print("计算机出拳"+m) print("计算机出拳"+m)
if a==x:
print("平局")
elif a=="石头" and x=="剪刀" or a=="剪刀" and x=="布" or a=="布" and x=="石头":
print("玩家赢")
else:
print("玩家输")
\ No newline at end of file
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