关于Ctype的学习笔记
动态链接库
三种加载方式
cdll()
windll()
oledll()
在Max OX系统上的使用
1 | from ctypes import * |
上述三种方式都可以
1 | message_string = "Hello world!\n" |
没错! 只输出第一个letter! 只有在每个字符创前都加上b
后才正常
1 | message_string = b"Hello world!\n" |
The small detail of the
b
prefix, which is a bytes literal, is the difference between passing an ASCII byte stringb"Hello World!\n"
versus a UTF-16LE encoded string