Commit 69c6c0f9 by BellCodeEditor

save project

parent 3c44792e
Showing with 10 additions and 3 deletions
...@@ -2,6 +2,13 @@ ...@@ -2,6 +2,13 @@
player=input("关鸡你得出石头,剪刀,或布") player=input("关鸡你得出石头,剪刀,或布")
print("玩家出了"+player) print("玩家出了"+player)
import random import random
list["石头""剪刀""布"] list=["石头","剪刀","布"]
computer=random.choice(list) computer=random.choice(list)
print("电脑出了"compuret) print("电脑出了",computer)
\ No newline at end of file
if player==computer:
print("平局了,连人机都打不过,小菜")
elif (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"):
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