Fork me on GitHub
摘要: >>> for i in range(0,10): if i > 10: break; else: print "hello world"; 输出:hello world >>> for i in range(0,10): if i > 5: break; else: print "hello wo 阅读全文
posted @ 2017-05-08 23:06 流氓兔Nemo 阅读(473) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/tanxiang21/article/details/8189861 阅读全文
posted @ 2017-05-08 22:55 流氓兔Nemo 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1,# coding:utf-8设置文件内容的编码2,sys.setdefaultencoding()设置python解析器默认的编码 首先python编解码的过程是: 换句话说就是:unicode就是中间态编码,只用先将str字符串decode成unicode之后,才能将其encode成其他编码格 阅读全文
posted @ 2017-05-08 22:13 流氓兔Nemo 阅读(189) 评论(0) 推荐(0) 编辑