Python
文章平均质量分 74
xinweihome
We are mightly and merely people,each with similar needs
展开
-
Python中Boolean operator的一些特点
今天在网站上学习Learn Python The Hard Way,Exercise 28(http://learnpythonthehardway.org/book/ex28.html)时,[Common Student Questions] 有个问题引起了我的兴趣:Why does "test" and "test" return "test" or 1 and 1 return 1原创 2013-11-28 20:49:53 · 1603 阅读 · 0 评论 -
Python2.7.3读取日志信息时发生读取不完整的问题
1、问题:File reading problem OS environment : windows 7 Python version:2.7.3 今天在使用Python以文本方式读取一份日志文档时,发生了怪异的问题,26464行的日志文档,程序始终只能读出1980行。尝试io.open方式,加上参数encoding='utf-8'问题依旧。 # certificatio原创 2013-12-30 13:33:19 · 2050 阅读 · 0 评论