unicode字符轉換成中文

咱們返回數據的時候有時候會返回unicode格式的字符串,咱們要把這種字符串轉換成中文 具體要怎麼作,看下面的案例:web data = '\u5317\u4eac' print type(data) print data type ‘str’ \u5317\u4eac 能夠看到咱們打印出來的結果是沒有轉換的字符串svg data = '\u5317\u4eac' print type(data)
相關文章
相關標籤/搜索