Python 海龟的宽度和身长有什么区别?

Python 海龟的宽度和身长有什么区别?,python,python-2.7,python-3.x,ipython,Python,Python 2.7,Python 3.x,Ipython,我改变了海龟的这些属性,它们似乎做了同样的事情,让画的线变大或变小,这两个属性之间有什么区别?它们似乎是一样的没有区别,turtle.width()是turtle.pensize()的别名。以下是帮助(turtle.pensize)显示的文档字符串: 模块中有关功能暂停的帮助: pensize(宽度=无) 设置或返回线条厚度 Aliases: pensize | width Argument: width -- positive number Set the line thickness

我改变了海龟的这些属性,它们似乎做了同样的事情,让画的线变大或变小,这两个属性之间有什么区别?它们似乎是一样的

没有区别,
turtle.width()
turtle.pensize()的别名。以下是帮助(turtle.pensize)显示的文档字符串

模块中有关功能暂停的帮助:

pensize(宽度=无) 设置或返回线条厚度

Aliases:  pensize | width

Argument:
width -- positive number

Set the line thickness to width or return it. If resizemode is set
to "auto" and turtleshape is a polygon, that polygon is drawn with
the same line thickness. If no argument is given, current pensize
is returned.

Example:
>>> pensize()
1
>>> pensize(10)   # from here on lines of width 10 are drawn