Commit dfb66296 by BellCodeEditor

save project

parent c0b5d117
Showing with 20 additions and 0 deletions
w__=input("请输入")
print("玩家出拳"+w__)
import random
list=["石头","剪刀","布"]
呸呸呸=random.choice(list)
print("计算机出拳"+呸呸呸)
if w__==呸呸呸:
print("平局")
elif w__=="剪刀" and 呸呸呸=="布":
print("你赢了")
elif w__=="石头" and 呸呸呸=="剪刀":
print("你赢了")
elif w__=="布" and 呸呸呸=="石头":
print("你赢了")
else:
print("你输了")
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