- 画一组同切圆
- 画一组同心圆
- 画一个五角星
- 画一个黄色实心五角星
1.答
import turtle
turtle.circle(60)
turtle.circle(20)
turtle.circle(60,extent=120)
turtle.circle(20)
turtle.circle(60,extent=120)
turtle.circle(20)
2.答
import turtle
turtle.circle(30)
turtle.up()
turtle.goto(0,-20)
turtle.down()
turtle.circle(50)
turtle.up()
turtle.goto(0,-40)
turtle.down()
turtle.circle(70)
3.答
import turtle
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
4.答
import turtle
turtle.color(‘yellow‘)
turtle.fillcolor(‘yellow‘)
turtle.begin_fill()
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.end_fill()
时间: 2024-11-01 05:48:47