Commit c4bee02e by BellCodeEditor

save project

parent 5b381bd0
Showing with 6 additions and 8 deletions
player=input("请出拳:石头/剪刀/布")# 玩家出拳 import turtle
print("玩家出拳:"+player) pen=turtle.Pen()
if player == computer: Pen.write("Hi,诺依\用python写电子贺卡真是太有趣了",font=("Times",18,"normal"))
print("平局") pen.hideturtle()
elif (player="剪刀" and computer="布" )or(piayer="石头" and computer="剪刀")or(player="布" and computer="石头"): turtle.done()
print("你赢了") \ No newline at end of file
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