mirror of
https://github.com/fxsjy/jieba.git
synced 2025-07-10 00:01:33 +08:00
test_file.py: close the file object
This commit is contained in:
parent
3667a4ab01
commit
81390a2d23
@ -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"
|
||||
|
Loading…
x
Reference in New Issue
Block a user