如何用python把这段ASCII码转换为可读的字符串

2024-12-04 11:32:33
推荐回答(2个)
回答1:

答案如下:
#!/usr/bin/env python3
# -*- coding:utf-8 -*-
str = "\u53ef\u8f6c\u51fa\u91d1\u989d\u8d85\u9650"
str.encode('utf8')
print(str)

回答2:

str = "\u53ef\u8f6c\u51fa\u91d1\u989d\u8d85\u9650"
str.encode('utf8')
print(str)