python:读取两个文件内容,并把其写入到一个新文件

with open(r'result.txt',"w",encoding="UTF-8") as fp:
    with open(r"C:\\Users\\苟辉朋\\Desktop\\file1.txt","r+",encoding="UTF-8"

你可能感兴趣的:(python基础学习及编程,python,list,读取文件)