![]() |
#2
hhubin_1122010-05-08 21:13
|

desc=[u'\u5a31\u4e50]
link=[u' http://blog.'],
title=[u'\u5a31\u4e50']
link=[u' http://blog.'],
title=[u'\u5a31\u4e50']
用cvster.writerow([item['title']), item['link'][0], item['desc']])写进去文件。但是在.csv文件中desc和title显示的还是unicode编码
请问有人知道怎么样保存才能让desc和title显示中文啊?python有这种转换函数吗?
谢谢谢了