【时时三省】Python 语言----文件
目录
1,文件打开
2, 文件关闭
3, 文件写入
4, 文件读出
5, 文件定位
6, 文件重命名
7, 复制文件
山不在高,有仙则名。水不在深,有龙则灵。
----CSDN 时时三省
1,文件打开
file = open(file, mode, buffering, encoding, errors, newline, closefd, opener)
2, 文件关闭
file.close()
3, 文件写入
file.write(data)