Commit e14e2a34 by BellCodeEditor

save project

parent 7fb59581
Showing with 13 additions and 5 deletions
import turtle
screen = turtle.Screen()
screen.bgcolor("light blue")
pen = turtle.Pen()
pen.penup()
pen.goto(-100,0)
pen.write("哈哈哈",font=("Times",30,"normal"))
pen.pencolor("red")
pen.pensize(5)
pen.speed(0)
screen = turtle.Screen()
len = screen.textinput("爱心大小","请输入一个整数:")
len = int(len)
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
pen.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