Commit 23736a73 by BellCodeEditor

save project

parent e2689714
Showing with 6 additions and 17 deletions
a=input("出拳") a=="xsg"
print("玩家已出拳"+a) b=="love"
import random name=input("用户名")
list=["剪刀","石头","布"] xx=input("密码")
l=random.choice(list) if name==a and xx==b:
print("电脑出拳"+l) print("成功")
if a in list:
if a==l:
print("平局")
elif (a=="剪刀" and l=="布") or (a=="石头" and l=="剪刀") or (a=="布" and l=="石头"):
print("win")
else :
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