具体代码如下
import turtle
## 绘画大圆
turtle.pensize(10) # 设置画笔大小为10px
turtle.pencolor('red') # 设置画笔颜色
turtle.circle(105) # 画一个半径为105px的圆
turtle.left(90) #向左旋转90度
turtle.penup() #提笔
turtle.forward(50) #前进50px
turtle.pendown() #落笔
turtle.right(90) #向右旋转90度
## 绘制小圆并填充蓝色
turtle.fillcolor('blue') # 设置填充颜色
turtle.begin_fill() # 设置填充起始位置
turtle.circle(55) #绘制一个半径为55px的圆
turtle.end_fill() #设置填充结束位置
## 绘制五角星并填充
turtle.pensize(1)
turtle.pencolor('white')
turtle.fillcolor('white')
turtle.penup()
turtle.left(90)
turtle.forward(70)
turtle.left(90)
turtle.forward(48)
turtle.left(180)
turtle.pendown()
turtle.begin_fill()
i=0
while i<5:
turtle.forward(100)
turtle.right(144)
i+=1
turtle.end_fill()
turtle.hideturtle() # 隐藏画笔
标签:turtle,队长,填充,##,盾牌,90,fill,left From: https://www.cnblogs.com/liuyangjava/p/18163600