When I right click on a function and then select "Go to definition" there shows up a module with that function, but it only shows the parameters which have to be passed to it, and I can't see anything about the body of the function.
Here is what's shown when I went to the definition of itertools.dropwhile
:
正如评论中提到的,VSCode 只能向您显示它可以访问的源代码,并且许多 Python 内置函数和 stdlib(包括itertools
模块)是在编译后的 C 中实现的——没有源代码可以向您展示。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.