error: use of undeclared identifier 'PyString_AsString'

Python2中存在该方法,Python3中已经取消了。code

解决方案:方法

使用'PyBytes_AsString'代替试试看。解决方案

相关文章
相关标签/搜索