Python Notes (2) How to use C ++ in Python

xiaoxiao2021-03-06  42

First search "How To Use C Class In Python", "How to use C class in Python". Get two clues: "C - SIG" and "CTypes". Go to Python's website to see what clues: find "Extending Python with C ", http://python.org/doc/current/ext/intro.html Python can call Plat API function, Extern "C" type The function. But use this method, is it too big? Swig Simplified Warpper and interface generator. Swig.sf.net See uses this tool, is it simpler? Find a simple example http://infoloom.com/gcaconfs/web/paris2000/s28-04.htm

转载请注明原文地址:https://www.9cbs.com/read-86828.html

New Post(0)