Commit 25bceec0 by BellCodeEditor

auto save

parent 9ed85b40
Showing with 29 additions and 0 deletions
import turtle
t=turtle.Turtle()
for i in range(4):
t.forward(100)
t.right(90)
turtle.done()
\ No newline at end of file
import turtle
t=turtle.Pen() #turtle.Turtle()
t.penup()
t.goto(-100,100)
t.pendown()
for i in range(4):
t.forward(200)
t.right(90)
t.penup()
t.goto(0,0)
t.pendown()
t.dot(20,"red")
t.penup()
t.goto(40,0)
t.pendown()
t.dot(20,"red")
t.penup()
t.goto(-40,0)
t.pendown()
t.dot(20,"red") #括号里第一个空是直径 第二个是颜色
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