简体   繁体   中英

is it possible to call python methods from a C program?

I remember seeing somewhere that you could call python methods from inside C using

#include "python.h"

But I can't seem to find the source for this or any examples.

How can I call python methods from inside a C program?

Here's a doc item from the python site about extending C with python functionality

Here's the start of the documentation (where it refers to python.h) where you can extend Python with C functionality.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM