详解python持久化文件读写 持久化文件读写:f=open('info.txt','a+')f.seek(0)str1=f.read()iflen(str1)==0:f1=open('info.txt','w+')str1=f.read()# python持久化文件读写