Commit fdd4cbc2 by BellCodeEditor

save project

parent 300f8ef2
Showing with 9 additions and 2 deletions
# 玩家出拳 # 玩家出拳
h=input("你tm给爷出拳") hh=input("你tm给爷出拳")
print("玩家出拳:"+h) print("玩家出拳:"+hh)
import random import random
list=["剪刀","布","石头"] list=["剪刀","布","石头"]
h=random.choice(list) h=random.choice(list)
print(h) print(h)
if hh==h:
print("平局")
elif(hh=="石头" and h=="剪刀")or(hh=="剪刀" and h=="布")or(hh=="布" and h=="石头"):
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