python文件操作
2016-01-27 14:08
465 查看
#encoding:utf-8 file = "D:/t.txt" fp = open(file) try: #response = fp.write("aaa|\n") #print response rows = fp.readlines() for row in rows: print row finally: fp.close()
相关文章推荐
- python开发中常用命令
- python的thread使用
- 关于python使用MySQLdb新增操作
- gvim一键编译运行python
- 基于Python实现通过微信搜索功能查看谁把你删除了
- python pickle
- python系列之 - 装饰器
- python中的比较
- Python学习之--数据基础(二)
- python 输出表达式之format
- Python Gzip压缩与解压模块
- Python前世今生
- 关于python中的flush问题
- python下载地址
- Python 7.2 StringIO和BytesIO
- Python图像灰度变换及图像数组操作
- python模块:win32com用法详解
- Head First Python(如何向PYPI发布你的代码)学习笔记
- Python 高级特性 : 切片
- webdriver的初步学习(IE,Chrome,Firefox)