Commit b863cbec by BellCodeEditor

save project

parent 165645e1
Showing with 16 additions and 3 deletions
name = input("请输入你的名字:————)
print(name+",你好")# 我们都爱夸夸夸
\ No newline at end of file
import random
print("你输定了")
print("为什么")
print("没有为什么")
while True :
wj = input("你出什么?(石头/剪刀/布)")
print("玩家出"+wj)
list = ["石头","剪刀","布",]
s = random.choice(list)
print("人机出," + s)
if wj == s:
print("平局")
elif (wj == "石头" and s == "剪刀") or (wj == "布" and s == "石头" ) or (wj == "剪刀"" and s == "") :
print("你赢了")
else(wj == "石头" and s == "")or (wj == "" and s == "剪刀")or(wj == "剪刀" and s == "石头"):
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