这种编码格式,怎末用python转换呢?
string= "1-1号开关室" dc = string.encode('unicode-escape') print(dc) # b'1-1\u53f7\u5f00\u5173\u5ba4'
string = dc.decode('unicode-escape') print(string) # 1-1号开关室