C++接受python返回的string PyObject *pValue_result= nullptr;
pValue_result = PyObject_CallObject(pFunc, pArgs);
PyObject* repr = PyObject_Repr(pValue_result); PyObject* str = PyUnicode_AsEncodedString(repr, "utf-8", "strict"); char* result = PyBytes_AsString(str);