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.
每当我尝试打开 .pyc 或 .pyo 文件时,我总是会收到一条错误消息,提示无法解码。
OS: Lion Python: 3.0.1
我正在尝试在 IDLE 中打开它们,它询问我文件的当前编码是什么,并且预先输入的是us-ascii
us-ascii
这些是编译的 Python 字节码;它们可以由解释器执行,但它们不是人类可读或可编辑的。
python helloworld.pyc