利用turtle绘制同切圆
程序员文章站
2022-07-01 19:09:38
...
利用turtle绘制同切圆,在上一个范例https://blog.csdn.net/qq_40253803/article/details/104715784基础上进行了改变,将海归宽度变为1,增加了同切圆的数量。
代码如下:
import turtle
turtle.pensize(1)
turtle.circle(10)
turtle.circle(20)
turtle.circle(30)
turtle.circle(40)
turtle.circle(50)
turtle.circle(60)
turtle.circle(70)
turtle.circle(80)
turtle.circle(90)
turtle.circle(100)
turtle.circle(120)
turtle.circle(140)
turtle.circle(150)
turtle.circle(160)
turtle.circle(170)
turtle.circle(180)
运行结果
下一篇: Python之画图 turtle 练习题