Commit 6d2bb95b by BellCodeEditor

save project

parent 07858a54
Showing with 310 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.bgcolor("light pink")
pen=turtle.Pen()
pen.pencolor("green")
pen.write("你好",font=("Times",30,"normal"))
len=screen.textinput("提","你想要多大的爱心")
a=int(len)
pen.penup()
pen.goto(100,50)
pen.pendown()
pen.pensize(10)
pen.pencolor("blue")
pen.left(45)
pen.forward(2*a)
pen.circle(a,180)
pen.right(90)
pen.circle(a,180)
pen.forward(2*a)
pen.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