python - Why is there no garbled Chinese in the normal output? After the zip function, there is a problem with Chinese programming unicode encoding. I traverse the output.
阿神
阿神 2017-06-12 09:23:09
0
1
1078

阿神
阿神

闭关修行中......

reply all(1)
typecho

Because zip combines every two independent strings into a tuple, and Chinese in tuples, lists, etc. data structures are stored according to unicode or hex , so what you see will be this result, which does not affect the use, nor is it garbled, because by directly traversing it and printing out the elements separately, you can see the content that can be recognized by humans. You can use the following code to help understand:

# coding: utf8
a = u'你好'
print a          # 独立打印

s = []           # 创建列表, 并存入列表
s.append(a)   
print s          # 将整个列表打印, 看到unicode编码存储的内容
print s[0]       # 将元素单独打印, 看到正常的内容

#### 输出  ###
你好
[u'\u4f60\u597d']
你好
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template