关于Unicode转为str的方法

unicode_a=u'\u810f\u4e71'

str_a=unicode_a.encode('unicode-escape').decode('string_escape')

猜你喜欢

转载自www.cnblogs.com/wangyuhangboke/p/9553028.html