Commit f1c98b7c by BellCodeEditor

save project

parent e8046b0b
Showing with 6 additions and 5 deletions
import turtle import turtle
pen =turtle.Pen() pen =turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
len=60 len=screen.textinput("提示","要多大的呢?")
lovesize=int(len)
screen.bgcolor("light blue") screen.bgcolor("light blue")
pen.color("red") pen.color("red")
pen.write("死去元知万事空\n但悲不见九州同\n王师北定中原日\n家祭无忘告乃翁",font=("Times",40,"normal")) pen.write("死去元知万事空\n但悲不见九州同\n王师北定中原日\n家祭无忘告乃翁",font=("Times",40,"normal"))
...@@ -12,10 +13,10 @@ pen1.penup() ...@@ -12,10 +13,10 @@ pen1.penup()
pen1.goto(-30,40) pen1.goto(-30,40)
pen1.pendown() pen1.pendown()
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()
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