Commit 8901cb9c by BellCodeEditor

save project

parent 07858a54
Showing with 26 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
#a=input("请问你要多少大的的爱心")\
screen=turtle.Screen()
len=screen.textinput("提示","你想要多大的爱心?")
lovesint(len)
screen.bgcolor("light blue")
pen=turtle()
# pen=turtle.Pen()
# pen.hideturtle()
# pen.write("诺依,感谢你的来信,\n你推荐的编辑器",font=("Times",20,"normal"))
pen.penup()
pen.goto(-150,180)
pen.down()
# turtle.done()
pen1=turtle.Pen()
pen1.hideturtle()
pen1.left(45)
len=60
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
turtle.done()
\ 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