test_file.py: close the file object

This commit is contained in:
Sun Junyi 2013-08-02 15:51:33 +08:00
parent 3667a4ab01
commit 81390a2d23

View File

@ -15,6 +15,7 @@ tm_cost = t2-t1
log_f = open("1.log","wb")
log_f.write(words.encode('utf-8'))
log_f.close()
print 'cost',tm_cost
print 'speed' , len(content)/tm_cost, " bytes/second"