Commit 22f74d80 by BellCodeEditor

save project

parent b5c6bbbe
Showing with 15 additions and 0 deletions
import random
hu=input("出拳剪刀/石头/布")
print("玩家出拳 "+hu)
qwerty=["剪刀","石头","布"]
print("电脑出拳"+random.choice(qwerty))
if hu in qwerty:
if hu==qwerty:
print("平局")
elif (hu=="剪刀"and qwerty=="布")or (hu=="石头"and qwerty=="剪刀")or (hu=="布"and qwerty=="石头"):
print("你鹰了!!!!!!!")
else :
print("你酥了")
else:
print("NB")
\ 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