Commit 6b932fcc by BellCodeEditor

save project

parent c99f5f9c
Showing with 10 additions and 15 deletions
...@@ -2,21 +2,16 @@ ...@@ -2,21 +2,16 @@
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen1=turtle.Pen
pen.write("你\n好西欧",font=("Times",35,"normal")) pen.write("你\n好西欧",font=("Times",35,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 pen1.(50.180)
pen.penup() left(90)
pen.goto(100,100) pen1.ferward(100)
pen.pendown() pen1.(50.180)
pen.pensize(5) right(90)
pen.pencolor("red") pen1.ferward(100)
pen.left(45) turtle.done
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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