官网:https://docs.python.org/2.6/library/ctypes.html?highlight=ctype#module-ctypes


ctypes 的简单使用。


ctypes 第一个程序hello world!

from ctypes import *
libc = CDLL("libc.so.6")
libc.printf("hello,world!")