===========Python文件基础========= 写,先写在了IO buffer了,所以要及时保存 关闭.关闭会自动保存. file.close() 读取全部文件内容用read,读取一行用readline—>string(如果是循环,下次读取下一行),读取多行readlines—>list(也是全部读完) ========Python文件的格式化写入======= am001=open('Amfomat.txt','w') s='%10s%10s%10s\n'%('Id','Nam…