1
2、C语言中运行python程序C语言使用popen/system或者直接以系统调用级fork+exec来运行python程序也是一种混编的手段了。举例如下,Python代码如下
3、C语言代码如下
4、测试如下