python 处理list显示中文

list显示[u'CD-A02-031', u'\u4e2d\u9ad8\u7aef\u4f4f\u5b85', 180L, 180L]

 

显示中文则处理如下:

str(list).replace('u\'','\'').decode("unicode-escape")

输出为:

['CD-A02-031', '中高端住宅', 180L, 180L]
posted @ 2019-07-10 10:58  yangtou45du  阅读(1717)  评论(0编辑  收藏  举报