###Date:2018-1-7
os 模块提供了一个统一的操作系统接口函数, 这些接口函数通常是平台指定的,os 模块能在不同操作系统平台如 nt 或 posix中的特定函数间自动切换,从而能实现跨平台操作
1.文件操作
build-in函数 open 实现文件创建, 打开, 修改文件的操作
import os
import string
def replace(file, search_for, replace_with):
# replace strings in a text file
back