亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

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
1401

阿神
阿神

閉關(guān)修行中......

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          # 獨(dú)立打印

s = []           # 創(chuàng)建列表, 并存入列表
s.append(a)   
print s          # 將整個(gè)列表打印, 看到unicode編碼存儲(chǔ)的內(nèi)容
print s[0]       # 將元素單獨(dú)打印, 看到正常的內(nèi)容

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