Python与C集成方法的初探.pdfVIP

  • 3
  • 0
  • 约9.14千字
  • 约 9页
  • 2020-09-08 发布于湖北
  • 举报
一、 软件安装 1、 Python-2.3.3.exe (注意:版本有关系,有些高版本有问题) 2 、 VC 6.0 二、运行环境配置 1、本文默认 Python 的安装目录为: C:/Python23 ;在 VC IDE 中 Tools-Options-Directories 配置 Include files 为: C:/Python23/include ;Library files 为: C:/Python23/libs ; 2 、如需要 Debug 版本的要下载 python23_d.lib 和 python23_d.dll 这两个文件, 也可以下载 Python 源码来编译获得,具体可查阅相应文档。 三、 C 调用 Python 1、Test.c 源码 int main(int argc, char** argv) { //初始化 Python //在使用 Python 系统前,必须使用 Py_Initialize 对其 //进行初始化。它会载入 Python

文档评论(0)

1亿VIP精品文档

相关文档