[英]how to find the docstring in the numpy.random module?
I try to find the docstring of the numpy.random.random()
function in vscode
.我尝试在 vscode 中找到numpy.random.random()
vscode
的文档字符串。 To do this i can keep navigating to the definition using go to definition
from the menu or by pressing the f12
key.为此,我可以继续使用go to definition
从菜单或按f12
键导航到定义。
...but i end up navigating to this line of code: ...但我最终导航到这行代码:
def random(self, size: None = ...) -> float: ... # type: ignore[misc]
Not only do i not find the docstring, but i dont understand what the elipses (three dots ...
) do or what this line of code means.我不仅没有找到文档字符串,而且我不明白省略号(三个点...
)的作用或这行代码的含义。 There are various explanations of elipses for use in arrays in numpy, but not for functions or how i can navigate to the docstring from this. numpy 中的 arrays 中使用的省略号有多种解释,但不适用于函数或我如何从中导航到文档字符串。
So, where is the docstring of the function ?那么, function 的文档字符串在哪里? (ie. the same docstring that i would see by hovering over the function) (即,通过将鼠标悬停在函数上会看到相同的文档字符串)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.