C代码: Python代码: 使用下方命令生成Python里面用到的 libfunc.so 文件 gcc -fPIC -shared func.c -o libfunc.so 然后运行Python文件得到结果