Commit 2cb90e65 by BellCodeEditor

save project

parent 96506110
Showing with 6 additions and 4 deletions
......@@ -4,11 +4,13 @@ a=["石头","剪刀","布"]
import random
b=random.choice(a)
print("电脑出拳:"+b)
if p==b:
if p in a:
if p==b:
print("平局")
elif p=="石头" and b=="剪刀" or p=="剪刀" and b=="布" or p=="布" and b=="石头":
elif p=="石头" and b=="剪刀" or p=="剪刀" and b=="布" or p=="布" and b=="石头":
print("你赢了")
else:
else:
print("Gey over")
else:
print("SB,错了")
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