Commit 505e745c by BellCodeEditor

save project

parent b5c6bbbe
Showing with 21 additions and 0 deletions
# 玩家出拳
sd=input("你出什么?")
print(sd)
import random
wzry=["石头","剪刀","布"]
dsz=random.choice(wzry)
print(dsz)
if sd in wzry:
if sd==dsz:
print("平局")
elif sd=="石头" and dsz=="剪刀":
print("胜利")
elif sd=="剪刀" and dsz=="布":
print("胜利")
elif sd=="布" and dsz=="石头":
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