Commit 4a18eb73 by BellCodeEditor

save project

parent b5408c96
Showing with 8 additions and 7 deletions
......@@ -4,9 +4,10 @@ print(name)
a=["拳头","剪刀", "布"]
b=random.choice(a)
print(b)
if name==b:
print("很遗憾,平局了")
elif (name=="拳头" and b=="布") or (name=="布" and b=="剪刀") or (name==" 剪刀" or b=="拳头"):
print("恭喜,你输了")
else
print("垃圾,你赢了")
\ No newline at end of file
if
if name==b:
print("很遗憾,平局了")
elif (name=="拳头" and b=="布") or (name=="布" and b=="剪刀") or (name==" 剪刀" or b=="拳头"):
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