Commit 94abc7c0 by BellCodeEditor

save project

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