方法一:
import json
s = '\\u9500\\u552e'
print(json.loads(f'"{s}"'))
方法二:
def func(row_str):
return row_str.encode().decode('unicode_escape')
str = func('\\u9500\\u552e')
print(str)
方法一:
import json
s = '\\u9500\\u552e'
print(json.loads(f'"{s}"'))
方法二:
def func(row_str):
return row_str.encode().decode('unicode_escape')
str = func('\\u9500\\u552e')
print(str)