Commit b07ac6c4 by BellCodeEditor

save project

parent 2064dc27
Showing with 1 additions and 1 deletions
...@@ -7,7 +7,7 @@ h=random.choice(r) ...@@ -7,7 +7,7 @@ h=random.choice(r)
print(h) print(h)
if p==h: if p==h:
print("平局") print("平局")
elif (p=="石头" and h=="剪刀") or (p=="剪刀" and h=="布") or (p=="布" and h=="石头") elif (p=="石头" and h=="剪刀") or (p=="剪刀" and h=="布") or (p=="布" and h=="石头"):
print("赢") print("赢")
else: else:
print("输") 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