Commit 7564e9b0 by BellCodeEditor

save project

parent a1f11aaf
Showing with 11 additions and 0 deletions
...@@ -3,3 +3,13 @@ print("玩家出拳:"+qqqq) ...@@ -3,3 +3,13 @@ print("玩家出拳:"+qqqq)
impurt random impurt random
computr=random.choice(list) computr=random.choice(list)
print(computer) print(computer)
if pppp==computer:
print("平局")
elif pppp=="石头" and computer=="剪刀":
print("玩家胜")
elif pppp=="剪刀" and computer=="布":
print("玩家胜")
elif pppp=="布" and computer=="石头":
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