os模块:Python系统编程的操作模块,用来处理文件及目录
import os #导入os模块
help(os) #查看os模块帮助文档,里面详细的模块相关函数和使用方法
常用函数
os sep
os.linesep
os.getcwd()
os.listdir(".")
参考:
1.Python OS模块常用功能 中文图文详解 http://www.iplaypy.com/module/os.html
2. Python学习笔记 OS模块 http://blog.csdn.net/killua_hzl/article/details/6657896