Commit 2c6c2b15 by BellCodeEditor

save project

parent ecbfbff9
Showing with 2 additions and 17 deletions
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()
pen.write("诺伊,turtle真好用,\n我会在画布上写字了!",font=("Times",30,"normal")) pen.write("诺伊,turtle真好用,\n我会在画布上写字了!",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
...@@ -10,7 +8,8 @@ pen.penup() ...@@ -10,7 +8,8 @@ pen.penup()
pen.goto(100,100) pen.goto(100,100)
pen.pendown() pen.pendown()
pen.pensize(5) pen.pensize(5)
pen.pencolor("red") len=60
pen.pencolor("yellow")
pen.left(45) pen.left(45)
pen.forward(2*len) pen.forward(2*len)
pen.circle(len,180) pen.circle(len,180)
......
import turtle import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("诺伊,turtle真好用,\n我会在画布上写字了!",font=("Times",30,"normal")) pen.write("诺伊,turtle真好用,\n我会在画布上写字了!",font=("Times",30,"normal"))
pen.hideturtle() pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("yellow")
pen1.pensize(5)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
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