Commit 34088e7f by BellCodeEditor

save project

parent 8b0e32a7
Showing with 4 additions and 5 deletions
import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() import turtle
len=int(screen.textinput("提示","心的大小是多少")) len=65
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
turtle.done() #turtle.done()
\ No newline at end of file \ 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