call functions in dlls/shared libraries

ctypes is a foreign function library for Python. It provides C compatible data types, and allows to call functions in dlls/shared libraries. It can be used to wrap these libraries in pure Python.
 

http://docs.python.org/release/2.5.2/lib/module-ctypes.html

原文地址:https://www.cnblogs.com/vicsmb/p/2334156.html