Commit cd456ee8 by BellCodeEditor

auto save

parent 4a18eb73
Showing with 4 additions and 1 deletions
...@@ -4,10 +4,12 @@ print(name) ...@@ -4,10 +4,12 @@ print(name)
a=["拳头","剪刀", "布"] a=["拳头","剪刀", "布"]
b=random.choice(a) b=random.choice(a)
print(b) print(b)
if if name in a:
if name==b: if name==b:
print("很遗憾,平局了") print("很遗憾,平局了")
elif (name=="拳头" and b=="布") or (name=="布" and b=="剪刀") or (name==" 剪刀" or b=="拳头"): elif (name=="拳头" and b=="布") or (name=="布" and b=="剪刀") or (name==" 剪刀" or b=="拳头"):
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