文件操作 1.文件格式 file txt xml html 2.mode参数 打开这个文件的模式 r w a r+ w+ a+ rb rb+ wb wb+ ab ab+ file = open("python.txt","r+",encoding="utf-8") res=file.read(