Commit 323694e4 by BellCodeEditor

save project

parent 5075c384
Showing with 6 additions and 1 deletions
......@@ -4,4 +4,9 @@ print(name)
a=["石头","剪刀","布"]
p=random.choice(a)
print(p)
if name==a:
print("平局")
elif (name=="石头"and a=="剪刀") or (name=="剪刀"and a=="布")or(name=="布"and a=="石头"):
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