Commit 51f75280 by BellCodeEditor

auto save

parent 35d960f2
Showing with 4 additions and 0 deletions
......@@ -5,9 +5,12 @@ while True:
x=["石头","剪刀","布"]
c=random.choice(x)
print(c)
if b in list:
if b==c:
print("平局")
elif (b=="石头" and c=="剪刀") or (b=="剪刀" and c=="布") or (b=="布" and c=="石头"):
print("你赢了")
else:
print("你输了")
else:
print("输入错误")
\ No newline at end of file
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