Commit e6a14978 by BellCodeEditor

auto save

parent 4cac003e
Showing with 17 additions and 3 deletions
neme=input("输入名字")
print(neme+"你好啊")
\ No newline at end of file
import random
while True:
a=input("请出拳(石头/剪刀/布)")
b=["剪刀","石头""布"]
win_lish=[["石头","剪刀"],["剪刀","布"]["布""石头"]]
mac=random.choice(b)
print("你出拳"a)
prant("计算机出拳"mac)
if a in b:
if a == mac:
prant("平局")
elif [a,mac] in win_lish
prant("你赢了")
else:
prant("你输了")
else
prant("错误")
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