Commit b4aaaf2a by BellCodeEditor

save project

parent 07858a54
Showing with 22 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
s=turtle.Screen()
pen = turtle.Pen()
s.bgcolor("light blue")
pen.penup()
pen.goto(100,-100)
pen.write("你好",font=("Times",30,"normal"))
pen.hideturtle()
p = turtle.Pen()
p.pensize(5)
p.pencolor("red")
p.left(45)
l=s.textinput("提示","多大的爱心")
l=int(l)
p.forward(2*l)
p.circle(l,180)
p.right(90)
p.circle(l,180)
p.forward(2*l)
p.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