【python】一个文件内容写入另一个 with open('f1.txt','r') as f1: with open('f2.txt','w') as f2: f2.write(f1.read())