Commit 9e78d441 by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
b=turtle.Screen()
b.bgcolor("pink")
len=b.textinput("提示:","你想要多大的爱心呀?")
lovesize=int(len)
a=turtle.Pen()
a.penup()
a.goto(100,-100)
a.write("诺伊:\n 你好!\n 星光不问赶路人,时光不负有心人。",font=("Times",30,"normal"))
a.hideturtle()
a1=turtle.Pen()
a1.pensize(10)
a1.pencolor("red")
a1.left(45)
a1.forward(2*lovesize)
a1.circle(lovesize,180)
a1.right(90)
a1.circle(lovesize,180)
a1.forward(2*lovesize)
a1.hideturtle()
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