Commit b2eac264 by BellCodeEditor

save project

parent 07858a54
Showing with 22 additions and 0 deletions
import turtle
c=60
s=turtle.Screen()
a=s.textinput("提示框","画多大的爱心")
a=int(a)
s.bgcolor("blue")
p=turtle.Pen()
p1=turtle.Pen()
p1.fillcolor("red")
p1.begin_fill()
p1.left(45)
p1.forward(2*a)
p1.circle(a,180)
p1.right(90)
p1.circle(a,180)
p1.forward(2*a)
p1.end_fill()
p.penup()
p.goto(100,-100)
p.write("你好呀",font=("times",30,"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