新建项目
创建python文件
python文件只是简单的输出“hello world”
# This Python file uses the following encoding: utf-8
# if__name__ == "__main__":
# pass
def hello():
print("hello world!")
修改main.cpp
#include <QCoreApplication>
#include <Python.h>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
QCoreApplication