Commit 444070d8 by BellCodeEditor

save project

parent 220fe62b
Showing with 19 additions and 0 deletions
import random
nandu=input("请选择难度(简单/困难)")
player=input("玩家出拳:")# 玩家出拳
list=["石头","剪刀","布"]
if player in list:
computer=random.choice(list)
if nandu=="困难":
computer=player
print("电脑出拳:"+computer)
if player==computer:
print("""平局
没有这更令人沮丧""")
elif (player=="石头" and computer=="剪刀") or (player=="剪刀" and computer=="布") or (player=="布" and computer=="石头"):
print("你赢了")
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