Commit bdf9798c by BellCodeEditor

save project

parent a83cb3fb
Showing with 7 additions and 2 deletions
#利用write()帮助悟空给诺依回信吧~
import turtle
screen = turtle.Screen()
len1 = screen.textinput("爱心大小","你想要一个多大的爱心")
len = int(len1)
pen=turtle.Pen()
pen.penup()
len=60
......@@ -13,7 +17,8 @@ pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
pen.write("你好",font=("Times",30,"normal"))
pen.hideturtle()
turtle.done()
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