Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 python 中修改 _ssl 模块。但是,我找不到它的位置。我找到了 ssl.py,但它没有让我知道 _ssl 模块的位置。
启动解释器并:
>>> import _ssl >>> _ssl #<module '_ssl' from 'the/location/you/wanted.so'>
虽然它是一个动态加载的库(.so, .dll,取决于您的平台),但不能只修改它。
.so
.dll