Commit bed1cf1b by BellCodeEditor

auto save

parent 654bc3ba
Showing with 20 additions and 0 deletions
import turtle
screen=turtle.Screen()
pen=turtle.Pen()
pen.hideturtle()
pen.penup()
pen.goto(100,-100)
pen.write("你好\nSB.",font=("Times",30,"normal"))
pen2=turtle.Pen()
leng=screen.textinput("数值","请输入爱心大小数字")
dx=int(leng)
pen2.left(45)
pen2.forward(2*dx)
pen2.circle(dx,180)
pen2.right(90)
pen2.circle(dx,180)
pen2.forward(2*dx)
screen.bgcolor("pink")
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