2013年9月13日
摘要: Python Unicode与中文处理 python中的unicode是让人很困惑、比较难以理解的问题,本文力求彻底解决这些问题;1.unicode、gbk、gb2312、utf-8的关系;http://www.pythonclub.org/python-basic/encode-detail 这篇文章写的比较好,utf-8是unicode的一种实现方式,unicode、gbk、gb2312是编码字符集;2.python中的中文编码问题;2.1 .py文件中的编码 Python 默认脚本文件都是 ANSCII 编码的,当文件 中有非 ANSCII 编码范围内的字符的时候就要使用"编码 阅读全文
posted @ 2013-09-13 11:21 andy071001 阅读(1239) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: bool is_pal(string s, int start, int end) { while (start > part(string s, int start, int end) { vector> r; for (int st = end; st >= 0; st--) { vector> ret; if (is_pal(s, st, end)) { s... 阅读全文
posted @ 2013-09-13 00:36 andy071001 阅读(129) 评论(0) 推荐(0) 编辑