python - ctypes module: call C functions

Python's ctypes to use the C function, you need to first be compiled into a dynamic link library C form, ie .so files in .dll files in Windows, or Linux

C standard library dynamic link files in the Windows system msvcrt.dll (usually in the directory C: \ Windows \ System32 and C: \ Windows under SysWOW64 respectively \ 32-bit and 64-bit, do not deliberately distinguish between use, Python will choose the right)

 

 

 

 

 Information:  https://blog.csdn.net/m0_37822019/article/details/79709617  

Guess you like

Origin www.cnblogs.com/liming19680104/p/12004547.html