Python文件读写常见用法总结 1.读取文件#!/usr/bin/envpython#-*-coding:utf-8-*-"""文件读取三步骤:1.打开文件f=open(file,mode='r',bufferi python写入文件