Commit e54647ba by BellCodeEditor

save project

parent 220fe62b
Showing with 12 additions and 0 deletions
player=input("请出拳")# 玩家出拳
print(player)
import random
ist=["石头","剪刀","布"]
compnter=random.choice(ist)
print("电脑出拳"+compnter)
if compnter==player:
print("平局")
elif (compnter=="剪刀" and player=="石头") or (compnter=="石头" and player=="布") or (compnter=="布" and player=="剪刀"):
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