python unicode

 

>>> a="jkjjhhjjj"
>>> a_uni = a.decode('utf-8')
>>> type(a_uni)
<type 'unicode'>
>>> type(a_uni)==unicode
True
>>> a_uni
u'jkjjhhjjj' 

posted @ 2019-01-16 17:02  anobscureretreat  阅读(278)  评论(0)    收藏  举报