更新时间:2023-09-20 10:56:22
您可以按已回答的方式使用 py2exe 并使用 Cython 将您的关键.py
文件转换为.pyc
中的C编译文件,例如Windows中的.dll
和.so
在Linux上.
You can use py2exe as already answered and use Cython to convert your key .py
files in .pyc
, C compiled files, like .dll
in Windows and .so
on Linux.
与普通的.pyo
和.pyc
文件相比,恢复它要困难得多(而且还可以提高性能!).
It is much harder to revert than common .pyo
and .pyc
files (and also gain in performance!).