如何解决哪里可以看到/usr/lib/python3.x下的python列表的代码?
这里我可以看到python的所有核心模块的源代码,如'os'、'turtle'、'multiprocessing'、'argparse'……但我似乎找不到内置数据结构的类定义像字典和列表。 我试过了
$ grep -r 'class list' .
./pydoc_data/topics.py: ' the base class list; "__doc__" is the class’s documentation '
./pydoc_data/topics.py: 'class list([iterable])\n'
Binary file ./pydoc_data/__pycache__/topics.cpython-36.pyc matches
但是在这个“topics.py”文件中没有找到“class”实现。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。