Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我记得在某处看到你可以使用从 C 内部调用 python 方法
#include "python.h"
但我似乎找不到这个或任何例子的来源。
如何从 C 程序内部调用 python 方法?
这是来自 python 站点的关于使用 python 功能扩展 C 的文档项
这是文档的开头(它指的是 python.h),您可以在其中使用 C 功能扩展 Python。
查看http://docs.python.org/c-api