official tutorial for ctypes libhttps://docs.python.org/3/library/ctypes.html 1 ctypes exports the cdll, and on Windows windll and oledll objects, for loading dynamic link libraries you should load libs by accessing them AS attrinuts of these ob…
In Python 2.7, strings are byte-strings by default. In Python 3.x, they are unicode by default. Try explicitly making your string a byte string using .encode('ascii') before handing it to DLL.prepare. ==>在Python 2.7中,string默认的是byte-strings,而在 Python…