Commit 3c625d3a by BellCodeEditor

save project

parent a4174b45
Showing with 3 additions and 24 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen=turtle.Pen()
pen.penup()
pen.goto(90,-90)
pen.write("你好\n这只是个\n普普通通的\n贺卡,没什\n么特别的\nhhhh .",font=("Times",20,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pensize(10)
len=screen.textinput("爱心框","爱心大小")
lovesize=int(len)
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
pen1.hideturtle()
turtle.done()
name=input("钟莉")
print(name+"你是个好人")
\ 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