Commit 9362b814 by BellCodeEditor

save project

parent 535818de
Showing with 7 additions and 7 deletions
...@@ -5,7 +5,7 @@ screen.bgcolor("light blue") ...@@ -5,7 +5,7 @@ screen.bgcolor("light blue")
len=screen.textinput("100","100") len=screen.textinput("100","100")
len=int(len) len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.write("你好\nSB.",font=("Times",30,"normal")) pen.write("你好\nphhh.",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 len=60
pen.penup() pen.penup()
......
import turtle import turtle
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("light blue") screen.bgcolor("light blue")
# len=screen.textinput("100","100") len=screen.textinput("100","100")
# len=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
...@@ -12,11 +11,12 @@ penlove=turtle.Pen() ...@@ -12,11 +11,12 @@ penlove=turtle.Pen()
penlove.pensize(5) penlove.pensize(5)
penlove.pencolor("red") penlove.pencolor("red")
penlove.left(45) penlove.left(45)
penlove.forward(100) len=60
penlove.circle(50,180) penlove.forward(2*len)
penlove.circle(len,180)
penlove.right(90) penlove.right(90)
penlove.circle(50,180) penlove.circle(len,180)
penlove.forward(100) penlove.forward(2*len)
turtle.done() turtle.done()
# penlove.penup() # penlove.penup()
# penlove.goto(100,100) # penlove.goto(100,100)
......
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