list打印中出现中文,怎么输出?
代码:
# -*- coding: utf-8 -*-
L = ['周丹琳',96]
print L
运行成功后得到结果:
['\xe5\x91\xa8\xe4\xb8\xb9\xe7\x90\xb3', 96]
为什么不是['周丹琳',96]
代码:
# -*- coding: utf-8 -*-
L = ['周丹琳',96]
print L
运行成功后得到结果:
['\xe5\x91\xa8\xe4\xb8\xb9\xe7\x90\xb3', 96]
为什么不是['周丹琳',96]
2017-09-21
举报