1.环境:
window10, python3.8, qt5.13
2. 新建C++控制台工程cCallPython
3. 添加外部库Python
4. 在main.cpp中编写调用程序
#include <QCoreApplication>
#include <Python.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
PyObject *pName, *pModule, *pDict, *pFunc;
if(argc < 3)
{