python:含有中文的list

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_29730101/article/details/82153351

list中的元素带有编码

print每个元素时 正常显示中文 

但直接 print list 就会显示编码 

使用

str(list).decode('string_escape')

猜你喜欢

转载自blog.csdn.net/qq_29730101/article/details/82153351