Commit 192dfc18 by BellCodeEditor

save project

parent 57cb8cec
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
s=turtle.Screen()
l=int( s.textinput("小调查","你要多大的爱心呢?") )
s.bgcolor("light blue")
f=turtle.Pen()
f.penup()
f.goto(100,-100)
f.write("诺伊,你好,\n我是惠然~\n你是谁呀?~",font=("Times",20,"normal"))
p=turtle.Pen()
p.pencolor("pink")
p.pensize(5)
p.left(45)
p.forward(l*2)
p.circle(l,180)
p.right(90)
p.circle(l,180)
p.forward(l*2)
p.hideturtle()
f.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