Monthly Archives: October 2012

笔记汇总———Python 处理中文的一些小技巧UNICODE encoding

python对多国语言的处理是支持的很好的,它可以 处理现在任意编码的字符,这里深入的研究一下python对多种不同语言的处理。 首先要理解字符集, 和源代码存储编码 关于Python处理Unicode,我所能找到的最言简意赅的入门教程是: Unicode In Python, Completely Demystified (揭秘 Python Unicode)

Posted in Programming | Comments Off on 笔记汇总———Python 处理中文的一些小技巧UNICODE encoding

unsigned integer can be evil — C implicit conversion

a=-1 b=1, Sometime,  if(a>b) return true,         which means -1 is greater than 1. Do not believe it? but it is possible for C and C+  

Posted in Uncategorized | Comments Off on unsigned integer can be evil — C implicit conversion