Commit bead3c0d by BellCodeEditor

save project

parent d1e77c10
Showing with 10 additions and 6 deletions
......@@ -4,12 +4,16 @@ import random
list=["剪刀","石头","布"]
l=random.choice(list)
print("电脑出拳"+l)
if a==l:
print("平局")
elif (a=="剪刀" and l=="布") or (a=="石头" and l=="剪刀") or (a=="布" and l=="石头"):
print("win")
else :
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