Commit 46a06711 by BellCodeEditor

save project

parent f52f103d
Showing with 3 additions and 2 deletions
......@@ -7,9 +7,9 @@ o=["石头","剪刀","布"]
cup=random.choice(o) # 计算机出拳
print("计算机出拳:"+cup)
if player==cup:
if player==cup:
print("平局")
elif (player=="布" and cup=="石头") or (player=="石头" and cup=="剪刀") or (player=="剪刀" and cup=="布"):
print("我赢了"
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