Python第一周作业

时间:2023-03-10 05:11:25
Python第一周作业
 import turtle

 turtle.color('black','red')
turtle.pensize(10)
turtle.begin_fill()
for i in range(5):
turtle.fd(200)
turtle.rt(144) turtle.end_fill() drawSuperstar

Superstar

 import turtle

 turtle.screensize(1000,1000,"green")

 turtle.pensize(10)
turtle.color('pink','purple')
turtle.begin_fill() turtle.left(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.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.end_fill() 六角形

六角形

Python第一周作业
叠加三角形

Python第一周作业