01 2013 档案

摘要:作为一个python的菜鸟,最近在用python读取html文件内容。由于文件本身存在乱码(应该是保存到本地产生的),所以使用以下代码读取时,读取到乱码处就无法返回了。html = open(filename).read()查找了stackoverflowhttp://stackoverflow.com/questions/7297220/cant-get-python-to-read-until-the-end-of-a-file说在python的帮助文档中有关于read()的说明(我没有找到):Also note that when in non-blocking mode, less d 阅读全文
posted @ 2013-01-13 22:06 Anic 阅读(7843) 评论(3) 推荐(0) 编辑