用Python画圆的方法

2026-02-13 17:31:12

1、打开电脑上安装好的Python编辑器

用Python画圆的方法

2、导入from turtle import *模块

用Python画圆的方法

3、接着输入如下代码:

pensize(2)

color('red','pink')

begin_fill()

pd()

circle(66)

end_fill()

用Python画圆的方法

4、然后按F5运行代码,就可以看到圆形的效果了

用Python画圆的方法

猜你喜欢