Commit 7c76c743 by BellCodeEditor

save project

parent 6fcf1c4d
Showing with 7 additions and 3 deletions
...@@ -5,9 +5,12 @@ print(l) ...@@ -5,9 +5,12 @@ print(l)
s=input("输入你出的:") s=input("输入你出的:")
print(s) print(s)
print(a) print(a)
if (a=="剪刀" and s=="石头") or (a=="石头" and s=="布") or (a=="布" and s=="剪刀"): if s in l:
if (a=="剪刀" and s=="石头") or (a=="石头" and s=="布") or (a=="布" and s=="剪刀"):
print("你赢了") print("你赢了")
elif a==s: elif a==s:
print("平局") print("平局")
else: else:
print("你输了") 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