Commit 90ab6985 by BellCodeEditor

save project

parent 60a6a517
Showing with 5 additions and 2 deletions
# 玩家出拳 # 玩家出拳
import random
player =input("请出拳(石头/剪刀/布)") player =input("请出拳(石头/剪刀/布)")
print("玩家出拳L:"+player) print("玩家出拳L:"+player)
import random import random
...@@ -10,4 +11,6 @@ if player == computer: ...@@ -10,4 +11,6 @@ if player == computer:
elif (player=="石头" and computer=="剪刀") elif (player=="石头" and computer=="剪刀")
print("恭喜,你赢了") print("恭喜,你赢了")
elif: elif:
print("很遗憾,你死了") print("很遗憾,你死了")
\ No newline at end of file elif:
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