Commit 806510ca by BellCodeEditor

save project

parent 24c16e29
Showing with 8 additions and 5 deletions
...@@ -7,6 +7,7 @@ pen=turtle.Pen() ...@@ -7,6 +7,7 @@ pen=turtle.Pen()
pen.write("你好,诺依~\nPython真有趣~",font=("Time",30"normal")) pen.write("你好,诺依~\nPython真有趣~",font=("Time",30"normal"))
pen.hideturtle() pen.hideturtle()
len=60 len=60
len=int(len)
pen.penup() pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
...@@ -18,15 +19,16 @@ pen.circle(len,180) ...@@ -18,15 +19,16 @@ pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(len,i80) pen.circle(len,i80)
pen.forward(2*len) pen.forward(2*len)
len=60
pen1=turtle.pen() pen1=turtle.pen()
pen1.pensize(5) pen1.pensize(5)
pen1.pencolor("red") pen1.pencolor("red")
pen1.left(45) pen1.left(45)
pen1.forward(100) pen1.forward(len*2)
pen1.circle(50,180) pen1.circle(len,180)
pen1.right(90) pen1.right(90)
pen1.circle(50,i80) pen1.circle(len,i80)
pen1.forward(100) pen1.forward(len*2)
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("blue") screen.bgcolor("blue")
turtle.done() turtle.done()
\ No newline at end of file
...@@ -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("你好\n诺依.",font=("Times",30,"normal")) pen.write("你好\n诺依~",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
len=60 len=60
pen.penup() pen.penup()
......
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