Python将unicode转化为str

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012111465/article/details/83830723
u'111.232.123123'.encode('unicode-escape').decode('string_escape')
# output: '111.232.123123'

猜你喜欢

转载自blog.csdn.net/u012111465/article/details/83830723