可以的,python中一般有两种方法调用DLL中的函数。
1.直接使用函数名,函数名可以用dependency walker等工具查看。(这个工具在vc或者vs的工具包中)
[python] view plaincopy
import ctypes
dll = CTYPES.CDLL("test.dll")
res = test(3, 4)
2.使用Ordinal,Ordinal可以用dependency walker等工具查看。
[python] view plaincopy
import ctypes
dll = CTYPES.CDLL("test.dll")
res = dll[1](3, 4)