Python open()函数和read(n),read(),readline(),readlines()方法
Posted on 2012-09-28 13:02 酸草莓 阅读(448) 评论(0) 编辑 收藏 举报文件名称:somefile-11-3.txt
文件内容:
Welcome to this file
There is nothing here except
This stupid haiku
使用文件方法:
read(n),read(),readline(),readlines()
read(n)
readlines():