Commit 93f4a87c by BellCodeEditor

save project

parent b5c6bbbe
Showing with 16 additions and 0 deletions
wc=input("玩家出拳(拳头/剪刀/布)")
print("玩家出拳"+wc)
import random
abc=["剪刀","拳头","布"]
computer=random.choice(abc)
print("电脑出拳"+computer)
if wc in abc:
if abc==computer:
print("平局")
elif (abc=="布" and computer=="拳头") or (abc=="拳头" and computer=="剪刀") or (abc=="剪刀" and computer=="布"):
print("牛啊!牛啊!")
else:
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