
\python\python37-32\include\object.h(448): error C2059: 语法错误:“;” \python\python37-32\include\object.h(448): error C2238: 意外的标记位于“;”之前
原因: Python 和 Qt 的关键词 slots 冲突
#pragma push_macro("slots") #undef slots #include <Python.h> #pragma pop_macro("slots")