sBuf="ABCD" pstr=ctypes.c_char_p() pstr.value=sBuf.encode() aa=ctypes.c_ushort() print('pstr',type(pstr)) print('aa',type(aa)) #Init_Device(char *IDCode,unsigned short int *iRet); print(lib.Init_Device(pstr,byref(aa))) print(lib.Release_Device())
* daemon not running. starting it now on port 5037 * pstr aa 0 1 adb server is out of date. killing... * daemon started successfully * [Finished in 10.6s]
相似问题