售前咨询:400-0666-318
在python使用circle函数画圆,具体方法如下:
import turtle #导入turtle模块turtle.pensize(2)turtle.circle(10)turtle.circle(40)turtle.circle(80)turtle.circle(120)
import turtle #导入turtle模块
turtle.pensize(2)
turtle.circle(10)
turtle.circle(40)
turtle.circle(80)
turtle.circle(120)
效果图:
辰迅云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
推荐阅读: python生成器怎么获取元素个数