#include <Python.h> int main(int argc, char *argv[]) { Py_Initialize(); PyRun_SimpleString(тут строка с кодом нап питоне); Py_Finalize(); return 0; }