Commit 15df6836 by BellCodeEditor

auto save

parent dac91fb9
Showing with 16 additions and 0 deletions
player=input("玩家出拳(石头/剪刀/布)")
print("玩家出拳:"+player)
import random
list=["石头","剪刀","布"]
letter=random.choice(list)
print("电脑出拳:"+letter)
if player in list:
if letter==player:
print("平局")
elif (letter=="石头" and player=="布") or (letter=="布" and player=="剪刀") or (letter=="剪刀" and player=="石头"):
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