Commit 01498e49 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧
import turtle
s=turtle.Screen()
s.bgcolor('pink')
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write('What?',font=('times',20,'normal'))
p.hideturtle()
p1=turtle.Pen()
p1.pensize(6)
p1.pencolor('red')
len=s.textinput('提示','你想要多大的爱心')
lovesize=int(len)
p1.left(45)
p1.forward(2*lovesize)
p1.circle(lovesize,180)
p1.right(90)
p1.circle(lovesize,180)
p1.forward(2*lovesize)
p1.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