Commit fe910287 by BellCodeEditor

save project

parent 94afcfd4
Showing with 24 additions and 0 deletions
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好",font=("Times",30,"normal"))
pen.heading()
screen=turtle.Screen()
screen.bgcolor("light blue")
import turtle
pen1=turtle.Pen()
len=screen.textinput("提示","爱心大小")
lovesize=int(len)
pen1.pensize(10)
pen1.color("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.end_fill()
pen1.left(45)
pen1.forward(2*lovesize)
pen1.circle(lovesize,180)
pen1.right(90)
pen1.circle(lovesize,180)
pen1.forward(2*lovesize)
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