1 返回值在c++里面为const char*,python 接收实际上为int类型 原因:python默认返回值为int 解决方法: import ctypes import os CUR_PATH = os.path.dirname(__file__) dllPath = os.path.join(CUR_PATH, "vando.dll") pDll = ctypes.WinDLL(dllPath)<