
编码
tang05505622334
这个作者很懒,什么都没留下…
展开
-
在python代码中输出一个字符的unicode编码
如果ch是一个unicode字符:print '\u%04x' % ord(ch)ord(ch)返回的是这个字符的unicode编码的10进制形式,只需要将其按照unicode的格式用16进制打印出来即可例如:上面这个例子中就打印出了"你"、"好"、"a"这三个unicode字符的unicode码。unicode字符就是unicode字符串中的字符,原创 2017-11-26 18:45:05 · 22641 阅读 · 1 评论 -
wchar、char_t、char16_t、char32_t
wchar&wstring来自《C++ primer》The wchar_t type is guaranteed to be large enough to hold any character in the machine’s largest extended character set. The types char16_t and char32_t are intend原创 2017-11-26 18:34:15 · 6960 阅读 · 1 评论