Commit db8dbbff by BellCodeEditor

save project

parent 50e2089f
Showing with 5 additions and 13 deletions
player=input("请出拳("石头/剪刀/):") import turtle
print("玩家出拳:"+player) pen=turtle.pen()
# 玩家出拳 pen.write("你好呀,我收\n到信了",font=("time""30""normal"))
import randow pen.hideturtle()
list=["石头","剪刀",""] pen done()
computer=randow.choice(list)
prinot(player)
if player==computer:
print("平局")
elif(player=="石头"and computer=="剪刀") or (player=="剪刀"and computer=="") or (player==""and computer=="石头")
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