What does 'u' mean in a list?

前端 未结 4 1754
独厮守ぢ
独厮守ぢ 2020-11-29 11:09

This is the first time I\'ve came across this. Just printed a list and each element seems to have a u in front of it i.e.

[u\'hello\', u         


        
4条回答
  •  [愿得一人]
    2020-11-29 11:46

    The u just means that the following string is a unicode string (as opposed to a plain ascii string). It has nothing to do with the list that happens to contain the (unicode) strings.

提交回复
热议问题