error: use of undeclared identifier 'PyString_AsString'

Python2中存在該方法,Python3中已經取消了。code

解決方案:方法

使用'PyBytes_AsString'代替試試看。解決方案

相關文章
相關標籤/搜索