Commit 61686673 by BellCodeEditor

auto save

parent 07858a54
Showing with 30 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
len=screen.textinput("标题","你想要多大的爱心")
lovesize=int(len)
#画爱心
pen=turtle.Pen()
pen.left(45)
pen.forward(lovesize*2)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(lovesize*2)
pen1=turtle.Pen()
pen1.penup()
pen1.goto(100,-100)
pen1.write("123",font=("Times",30,"normal"))
pen.hideturtle()
pen1.hideturtle()
turtle.done()
# pen=turtle.Pen()
# pen.write("啦啦\n啦啦\n啦啦\n啦啦绿\n",font=("Times",30,"normal"))
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