摘要: 程序如下,学习关注点见备注内容 # -*- coding: utf-8 -*-from ctypes import *import sysprint '-'*100python_str = 'tests中国人' # 中文占4字节print 'python_string', python_strprint 'len:', len(python_str) # 字符长度,中文占3个长度,不含类似于C语言... 阅读全文
posted @ 2016-11-30 19:45 inns 阅读(5711) 评论(0) 推荐(0) 编辑