解决如下:
方法一:
str1='\u5927\u8bc4\u8bba\u5217\u8868'
print(str1)
注:可以直接用 print 语句进行输出
方法二:
str1='\u5927\u8bc4\u8bba\u5217\u8868'
注:python3的解决方法:
str1.encode('utf-8').decode('unicode_escape')
注:python2的解决方法:
str1.decode('unicode_escape')
解决如下:
方法一:
str1='\u5927\u8bc4\u8bba\u5217\u8868'
print(str1)
注:可以直接用 print 语句进行输出
方法二:
str1='\u5927\u8bc4\u8bba\u5217\u8868'
注:python3的解决方法:
str1.encode('utf-8').decode('unicode_escape')
注:python2的解决方法:
str1.decode('unicode_escape')