查看Python个标准库和外部库的源代码

View Python source code of the standard library and external libraries

如何查看特定标准库的源代码and/or 外部库?我想查看 Python 代码,而不是底层 C 代码。

我试图找到这个,看看有经验的程序员是如何编写他们的代码的。我已经看过 Where do I find the python standard library code? 但答案似乎大部分是用 C 写的。

标准库的主要仓库托管在这里:https://github.com/python/cpython/blob/3.7/Lib/

这也可以在同一位置(即子文件夹 Lib)的典型 Python 安装中找到。