Commit d39afa51 by BellCodeEditor

save project

parent b5a8cb46
Showing with 8 additions and 5 deletions
...@@ -2,19 +2,21 @@ ...@@ -2,19 +2,21 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("pink") screen.bgcolor("pink")
len = screen.textinput("你要什么大小??","d")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen1=turtle.Pen() pen1=turtle.Pen()
pen1.penup() pen1.penup()
pen1.forward(130) pen1.forward(len)
pen1.pendown() pen1.pendown()
pen1.write("你好\n诺依.",font=("Times",30,"normal")) pen1.write("你好\n诺依.",font=("Times",30,"normal"))
pen1.hideturtle() pen1.hideturtle()
pen.pensize(5) pen.pensize(5)
pen.pencolor("green") pen.pencolor("green")
pen.left(45) pen.left(45)
pen.forward(120) pen.forward(len*2)
pen.circle(60,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(60,180) pen.circle(len,180)
pen.forward(120) pen.forward(len*2)
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