python实现同心圆的绘制:
import turtle #引用turtle库
turtle.pensize(2) #设置画笔宽度为2像素
turtle.circle(1) #设置圆的半径1像素
turtle.circle(2) #设置圆的半径2像素
turtle.circle(4)
turtle.circle(6)
turtle.circle(8)
turtle.circle(10)
python实现同心圆的绘制:
import turtle #引用turtle库
turtle.pensize(2) #设置画笔宽度为2像素
turtle.circle(1) #设置圆的半径1像素
turtle.circle(2) #设置圆的半径2像素
turtle.circle(4)
turtle.circle(6)
turtle.circle(8)
turtle.circle(10)