Commit dc06ac5b by BellCodeEditor

save project

parent d081894f
Showing with 8 additions and 5 deletions
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
len=screen.textinput("提示""你要多大爱心")
screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
Pen=turtle.Pen() Pen=turtle.Pen()
Pen.penup() Pen.penup()
...@@ -9,12 +11,12 @@ Pen.write("诺依,turtle真好用,\n我会在\n画布上写字啦。",font=("Tim ...@@ -9,12 +11,12 @@ Pen.write("诺依,turtle真好用,\n我会在\n画布上写字啦。",font=("Tim
Pen1=turtle.Pen() Pen1=turtle.Pen()
Pen1.pensize(5) Pen1.pensize(5)
Pen1.pencolor("red") Pen1.pencolor("red")
len=60 lovesize=int(len)
Pen1.left(45) Pen1.left(45)
Pen1.forward(2*len) Pen1.forward(2*lovesize)
Pen1.circle(len,180) Pen1.circle(lovesize,180)
Pen1.right(90) Pen1.right(90)
Pen1.circle(len,180) Pen1.circle(lovesize,180)
Pen1.forward(2*len) Pen1.forward(2*lovesize)
Pen1.hideturtle() Pen1.hideturtle()
turtle.done() 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