摘要:
>>> 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 阅读全文
摘要:
http://blog.csdn.net/tanxiang21/article/details/8189861 阅读全文
摘要:
1,# coding:utf-8设置文件内容的编码2,sys.setdefaultencoding()设置python解析器默认的编码 首先python编解码的过程是: 换句话说就是:unicode就是中间态编码,只用先将str字符串decode成unicode之后,才能将其encode成其他编码格 阅读全文