Commit ec88bad1 by BellCodeEditor

save project

parent 8cb2a8b1
Showing with 6 additions and 0 deletions
...@@ -7,5 +7,11 @@ n=["石头","剪刀","布"] ...@@ -7,5 +7,11 @@ n=["石头","剪刀","布"]
g=random.choice(n) g=random.choice(n)
print(g) print(g)
if n==g:
print("平局")
elif (n=="石头" and g=="剪刀") or (n=="布" and g=="石头") or (n=="剪刀" and g=="布"):
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