[英]How do I find the file and row number in which the definition of a python object is written?
Eg for:例如:
import numpy as np
x = np.array(1)
I know that the array function is part of the numpy module.我知道数组 function 是 numpy 模块的一部分。 However, numpy is quite big, hence is there a way to find the exact file where the array function is implemented?但是,numpy 相当大,因此有没有办法找到实现数组 function 的确切文件?
If you are using visual studio code.如果您使用的是 Visual Studio 代码。 Put the mouse one the word, press ctrl and click when it's blue.将鼠标放在单词上,按 ctrl 并在它变为蓝色时单击。
It works for me at least.它至少对我有用。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.