name='python_to_so',# 包名稱 version="1.0",# 包版本號 ext_modules=cpy,# 擴展模塊 author='ohuo',# 作者 author_email='aha',# 作者郵箱 ) if__name__=='__main__': file='hello.py' py2so(file) 2)執(zhí)行編譯腳本 1 python3 py2so.py build_ext--inplace ...
www.dbjr.com.cn/python/308855c...htm 2025-6-7