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.pyc文件包含其源代码的绝对路径,而不是相对路径或其他内容?
.pyc
Ubuntu 上 Python 2.7的典型__init__.pyc示例:
__init__.pyc
\ufffd\ufffd\ufffdOc@sddlTdS(i\ufffd\ufffd\ufffd\ufffd(t*N(tdbapi2(((s&/usr/lib/python2.7/sqlite3/__init__.py<module>s
在回溯中提供信息。参见例如http://docs.python.org/library/compileall#cmdoption-compileall-d