文件处理

A 1-post collection
10 年前

Python 运维开发 学习记录 语言基础(二)

Shell/Python   字典和列表   文件处理  

一、模块的原理 from os import system,popen from os import * 不推荐 import commands __init__.py 二、文件处理 read 读 r f = file("py_home_work.csv","r") for line in f.readlines(): print line, f.clo…