代码点读机 / Python / turtle.circle

turtle.circle Python · 模块功能

让小海龟画一个圆。

怎么用

import turtle
turtle.circle(radius)

小例子

import turtle
turtle.circle(50)
print('画圆')

运行结果

画圆

提醒:半径为正逆时针。

官方文档:https://docs.python.org/zh-cn/3/library/turtle.html#turtle.circle

在代码里遇到不认识的词?打开代码点读机,点一下就懂 → ← Python全部词条