Commit 42e8fc5e by BellCodeEditor

save project

parent 0eaa4aa6
Showing with 3 additions and 1 deletions
...@@ -8,6 +8,8 @@ if palyer == computer: ...@@ -8,6 +8,8 @@ if palyer == computer:
print("平局") print("平局")
elif (palyer == "石头" and computer == "剪刀") or (palyer == "剪刀" and computer == "布") or (palyer == "布" and computer == "石头"): elif (palyer == "石头" and computer == "剪刀") or (palyer == "剪刀" and computer == "布") or (palyer == "布" and computer == "石头"):
print("胜利") print("胜利")
elif (computer == "石头" and palyer == "剪刀") or (computer == "剪刀" and palyer == "布") or (computer == "布" and palyer == "石头"):
print("失败")
else: else:
print("失败")palyer = input("玩家出拳(石头/剪刀/布)") 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