示例
#-*- coding:utf-8 -*-
from ctypes import *
import sys
api = None
if sys.platform == "win32":
api = CDLL("adddll.dll")
else:
api = CDLL("libadddll.so")
#指定调用接口的参数类型列表
api.add.argtypes = [c_int, c_int]
#指定调用接口的返回值类型
api.add.restype = c_int
print(api.add(5, 6))#输出结果11