Python read and write file
1.Python read and write file
fr=open("readfile.txt","r")
fw=open("writefile.txt","w")
print fr.readline()
print fr.tell()
print fr.readlines()
fw.write("===write line===")
fw.close()
fr.seek(0,0) #The first parameter represents the number of bytes, after which a parameter represents the relative ...