摘要: 1. python 用关键字 ctypes 来导入dll。有三种导入dll的方式:cdll(): dll函数以c方式导出 windll(): dll 函数以标准方式导出 oledll(): com 方式导出 如: 1 from ctypes import *2 3 msvcrt = cdll.msvcrt 4 message_string = "hello world\n" 5 msvcrt.printf("testing: %s", message_string)调用c运行库的printf 函数。2. c&c++数据类型和python数据类型的 阅读全文
posted @ 2011-05-24 15:42 sld666666 阅读(702) 评论(0) 推荐(1) 编辑