Commit f4b60a6d by BellCodeEditor

save project

parent b5c6bbbe
Showing with 16 additions and 0 deletions
# 玩家出拳
play=input("请出拳")
print("玩家"+play)
import random
hand=["石头","剪刀","布"]
litter=random.choice(hand)
print(litter)
if play in hand:
if play==litter:
print("平")
elif play=="石头" and litter=="剪刀" or play=="剪刀" and litter=="布" or play=="布" and litter=="石头":
print("赢")
else:
print("输")
else:
print("输入错误")
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