#将文件1的内容-复制到文件2with open("sunlin.txt","r")as f1: with open("linda.txt","w")as f2: content=f1.read() f2.write(content)