Commit 8c391422 by BellCodeEditor

save project

parent 67e944f3
Showing with 7 additions and 5 deletions
...@@ -7,17 +7,18 @@ pen.goto(100,-100) ...@@ -7,17 +7,18 @@ pen.goto(100,-100)
pen.pendown() pen.pendown()
pen.write("诺依\n你好呀",font=("Times",30,"normal")) pen.write("诺依\n你好呀",font=("Times",30,"normal"))
#画爱心 #画爱心
len=60 len=secreen.textinput("提示","爱心的大小")
a=int(len)
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(1) pen1.pensize(1)
pen1.color("red","red") pen1.color("red","red")
pen1.begin_fill() pen1.begin_fill()
pen1.left(45) pen1.left(45)
pen1.forward(len*2) pen1.forward(a*2)
pen1.circle(len,180) pen1.circle(a,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(a,180)
pen1.forward(len*2) pen1.forward(a*2)
pen1.hideturtle() pen1.hideturtle()
pen1.end_fill() pen1.end_fill()
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