Skip to content

Instantly share code, notes, and snippets.

View huihut's full-sized avatar
🌴
On vacation

huihut huihut

🌴
On vacation
View GitHub Profile
@huihut
huihut / CppCallPython.cpp
Created May 16, 2018 10:18
C++ call Python module
#include <iostream>
#include <Python.h>
// C++ call Python module
bool CppCallPython()
{
// Python initialize
Py_Initialize();
if (!Py_IsInitialized())
{