Commit 059cf89d by BellCodeEditor

save project

parent 220fe62b
Showing with 17 additions and 0 deletions
# 玩家出拳
name=input ("请出拳(石头/剪刀/布)")
parint("请玩家出拳")
import random
list=["石头/剪刀/布"]
pink=random.choice(list)
print()
if name==pink
print("平局")
elif name == "石头" and pink==("剪刀")
print("你真棒!")
elif name == "剪刀" and pink==("布")
print("你赢了!")
elif name == "布" and pink==("石头")
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