1.画一组同切圆
import turtle
turtle.circle(10)
turtle.circle(30)
turtle.circle(40)
2.画一组同心圆
turtle.circle(10)
>>> turtle.up()
>>> turtle.goto(0,-20)
>>> turtle.down()
>>> turtle.circle(30)
3.画一个五角星
import turtle
for i in range(5):
turtle.forward(50);
turtle.right(144);
4.画一个黄色实心五角星
import turtle
turtle.color('yellow')
turtle.begin_fill()
turtle.fillcolor('yellow')
for i in range(5): //利用for循环实现画图并填充
turtle.forward(50);
turtle.right(144);
turtle.end_fill()