在python 3.5.1的帮助函数中/的含义是什么?

时间:2015-12-22 04:33:33

标签: python-3.x

我几天前已经将我的python从3.3.2更新到3.5.1了,前几天通过在某些功能上做了帮助我发现了一些奇怪的东西,/在一些函数的公司中,例如:

3.3.2中的

>>> help(len)
Help on built-in function len in module builtins:

len(...)
    len(object) -> integer

    Return the number of items of a sequence or mapping.

>>>

现在在3.5.1

>>> help(len)
Help on built-in function len in module builtins:

len(obj, /)
    Return the number of items in a container.

>>> 

/是什么意思?

1 个答案:

答案 0 :(得分:0)

斜杠表示“仅位置参数”的结束,如this之前的答案中所述。