Commit 68e7919b by BellCodeEditor

save project

parent 69c6c0f9
Showing with 9 additions and 7 deletions
...@@ -5,10 +5,12 @@ import random ...@@ -5,10 +5,12 @@ import random
list=["石头","剪刀","布"] list=["石头","剪刀","布"]
computer=random.choice(list) computer=random.choice(list)
print("电脑出了",computer) print("电脑出了",computer)
if player in list:
if player==computer: if player==computer:
print("平局了,连人机都打不过,小菜") 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("你个关鸡太强了") print("你个关鸡太强了")
else:
print("你个傻仔,太逊了,连人机都打不过")
else: else:
print("你个傻仔,太逊了,连人机都打不过") print("你个傻逼,会不会玩呀,不会玩就滚蛋")
\ No newline at end of file \ 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