Commit 8dd95352 by BellCodeEditor

auto save

parent 2c446369
Showing with 34 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("提示","输入爱心大小")
len=float(len)
#print(type(len))
pen=turtle.Pen()
pen.pencolor("red")
pen.pensize(5)
def aixin(len):
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
aixin(len)
pen.penup()
pen.goto(100,30)
pen.pendown()
aixin(len)
pen.penup()
pen.goto(300,80)
pen.pendown()
aixin(len)
pen.hideturtle()
bi=turtle.Pen()
bi.penup()
bi.goto(100,-100)
bi.pencolor("blue")
bi.write("您好\nlong time no see",font=("Times",20,"normal"))
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