utf-8 output is more friendly to Linux

This commit is contained in:
fxsjy 2013-04-26 16:19:00 +08:00
parent d3339633d5
commit 9bebe6120b
2 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ tm_cost = t2-t1
log_f = open("1.log","wb")
for w in words:
print >> log_f, w.encode("gbk"), "/" ,
print >> log_f, w.encode("utf-8"), "/" ,
print 'speed' , len(content)/tm_cost, " bytes/second"

View File

@ -16,7 +16,7 @@ tm_cost = t2-t1
log_f = open("1.log","wb")
for w in words:
print >> log_f, w.encode("gbk"), "/" ,
print >> log_f, w.encode("utf-8"), "/" ,
print 'speed' , len(content)/tm_cost, " bytes/second"