简体   繁体   English

如何分别在Pycharm / Eclipse中查看Python / Java的内部代码实现?

[英]How to view internal code implementation of Python/Java in Pycharm/Eclipse respectively?

New to programming and interested to understand the internal implementation of methods and classes of Java and Python Languages. 编程新手,并且有兴趣了解Java和Python语言的方法和类的内部实现。

Is there any way to view the source code of these methods and or classes while using Eclipse and PyCharm ? 使用Eclipse和PyCharm时,是否可以查看这些方法和/或类的源代码? What are the shortcuts? 有哪些快捷方式?

I understand the official documentation explains what the classes do but actually viewing the code really takes the veil off. 我知道官方文档解释了类的作用,但是实际上查看代码确实可以揭开面纱。

For the part of the Python standard library which is implemented in Python, you can use the standard PyCharm navigation shortcuts (Go to Definition, Go to Class) to jump to their source code. 对于在Python中实现的Python标准库,您可以使用标准的PyCharm导航快捷方式(转到定义,转到类)跳转到其源代码。

A large part of the Python standard library is implemented in C, though. 不过,Python标准库的很大一部分是用C实现的。 The C source code needs to be downloaded separately, and there is no support in PyCharm for navigating to the C source code. C源代码需要单独下载,并且PyCharm不支持​​导航到C源代码。

For Java and Eclipse, the regular navigation shortcuts should work too. 对于Java和Eclipse,常规导航快捷方式也应该起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM