Commit c82b7fae by BellCodeEditor

save project

parent eac72e4f
Showing with 2 additions and 2 deletions
......@@ -6,12 +6,12 @@ q=["石头","剪刀","布"]
a=random.choice(q)
print("计算机出拳:"+a)
if f==q:
if f in q:
if f==a:
print("平局")
elif f=="石头"and a=="剪刀" or f=="剪刀" and a=="布" or f=="布" and a=="石头":
print("胜利!")
else:
print("失败!")
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