If I do this:
os.chdir(path)
f = open(file,"r")
lines = f.readlines()
print "without assignment " + str(len(f.readlines()))
print "with assignment " + str(len(lines))
I would expect the result to be the same, but it is not:
without assignment 0
with assigment 1268
Why is this?
source
share