ctypes使用的变量、指针、引用和buffer
程序如下,学习关注点见备注内容# -*- coding: utf-8 -*-fromctypesimport*importsysprint'-'*100python_str ='tests中国人'#中文占4字节print'python_string', python_strprint'len:', len(python_str)#字符长度,中文占3个长度,不含类似于...