Commit 787a6625 by BellCodeEditor

save project

parent ec88bad1
Showing with 4 additions and 4 deletions
# 玩家出拳 # 玩家出拳
import random import random
n=input("请玩家出拳") n=input("请玩家出拳:")
print(n) print(n)
n=["石头","剪刀","布"] n=["石头","剪刀","布"]
...@@ -9,9 +9,9 @@ print(g) ...@@ -9,9 +9,9 @@ print(g)
if n==g: if n==g:
print("平局") print("平局")
elif (n=="石头" and g=="剪刀") or (n=="布" and g=="石头") or (n=="剪刀" and g=="布"): elif (n=="石头" and g=="剪刀") or (n=="布" and g=="石头") or (n=="剪刀" and g=="布"):
print("恭喜你个垃圾,你赢了") print("你赢了")
else: else:
print("你个傻逼,你输了") 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