Commit 68e7919b by BellCodeEditor

save project

parent 69c6c0f9
Showing with 7 additions and 4 deletions
......@@ -5,10 +5,12 @@ import random
list=["石头","剪刀","布"]
computer=random.choice(list)
print("电脑出了",computer)
if player==computer:
if player in list:
if player==computer:
print("平局了,连人机都打不过,小菜")
elif (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"):
elif (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"):
print("你个关鸡太强了")
else:
else:
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