# 第一次作业

```import turtle as t
t.setup(600, 600, None,None)
t.pu()
t.fd(-120)
t.pensize(5)
t.width(5)
t.pencolor("darkgreen")
t.pd()
t.fd(250)
t.seth(120)
t.pencolor("black")
t.fd(250)
t.seth(-120)
t.pencolor("blue")
t.fd(250)
t.pencolor("purple")
t.fd(250)
t.seth(0)
t.pencolor("green")
t.fd(250)
t.pencolor("gold")
t.fd(250)
t.seth(120)
t.pencolor("red")
t.fd(250)
t.seth(-120)
t.pencolor("grey")
t.fd(250)
t.seth(120)
t.pencolor("violet")
t.fd(250)```

```import turtle
from turtle import done

t = turtle.Pen()
turtle.bgcolor("black")
t.pencolor("white")
i=0
while i<=5:
t.forward(100)
t.left(60)
i=i+1

done()```

```import turtle

turtle.left(30)
turtle.forward(144)

turtle.right(60)
turtle.forward(144)

turtle.right(60)
turtle.forward(144)

turtle.right(60)
turtle.forward(144)

turtle.right(60)
turtle.forward(144)

turtle.right(60)
turtle.forward(144)

turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.left(60)
turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.left(60)
turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.left(60)
turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.left(60)
turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.left(60)
turtle.forward(144)
turtle.right(120)
turtle.forward(144)

turtle.exitonclick()  ```

```import turtle

for i in range (len):
def main():
turtle.setup(1300,800,0,0)
pythonsize = 30
turtle.pensize(pythonsize)
turtle.pencolor("blue")
turtle.seth(-40)
drawSnake(40,80,5,pythonsize/2)

main()```

(0)
(0)

0条