Commit 23736a73 by BellCodeEditor

save project

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