摘要: readline返回一行的字符串, readlines返回包含文件所有内容的字符串列表, 每个元素是一行的字符串。【转自:http://www.ibm.com/developerworks/cn/linux/sdk/python/python-5/index.html#N1004E】我们谈到“文本处理”时,我们通常是指处理的内容。Python 将文本文件的内容读入可以操作的字符串变量非常容易。文件对象提供了三个“读”方法: .read()、.readline() 和 .readlines()。每种方法可以接受一个变量以限制每次读取的数据量,但它们通常不使用变量。 .read() 每次读取整个文 阅读全文
posted @ 2013-03-04 20:28 zbye 阅读(276) 评论(0) 推荐(0)
摘要: 站在一定的高度看问题,思想极具穿透力。she教导我们要专心做研究,塑造逻辑缜密而又灵活的学习和思维方式,不糊弄。for example, the paper should be totally understanded by oneself before make a report. Also,as a postgradute student,one should parctice dilivering an topic clearly and logicly. it's a basic ability needed! 2... 阅读全文
posted @ 2012-09-24 16:45 zbye 阅读(104) 评论(0) 推荐(0)