Commit e5de2721 by BellCodeEditor

save project

parent 3ff8a06e
Showing with 7 additions and 5 deletions
...@@ -5,15 +5,17 @@ pen=turtle.Pen() ...@@ -5,15 +5,17 @@ pen=turtle.Pen()
screen.bgcolor("light green") screen.bgcolor("light green")
pen.penup() pen.penup()
pen.goto(50,-100) pen.goto(50,-100)
pen.write("你好\n666666666666666666.",font=("Times",30,"normal")) pen.write("你好\n6.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
len=screen.textinput("1","2")
len1=int(len)
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(2*len1)
pen1.circle(50,180) pen1.circle(len1,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,180) pen1.circle(len1,180)
pen1.forward(100) pen1.forward(2*len1)
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