Commit 332a56e0 by BellCodeEditor

save project

parent 0ef60ede
Showing with 2 additions and 2 deletions
...@@ -4,8 +4,8 @@ gn=["石头","剪刀","布"] ...@@ -4,8 +4,8 @@ gn=["石头","剪刀","布"]
print("出的拳是:"+a) print("出的拳是:"+a)
b=random.choice(gn) b=random.choice(gn)
print("计算机出拳: "+b) print("计算机出拳: "+b)
if player==b: if a==b:
print("平局") print("平局")
elif (player=="石头" and b=="剪刀") or (player=="剪刀" and b=="布") or (): elif (a=="石头" and b=="剪刀") or (a=="剪刀" and b=="布") or (a=="布" and b=="石头"):
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