大家好,这是我的content.json文件
[{"content": "Let\u2019s go home \n\u00a0\nNow", "channel_id": "423266223960096770", "mentions": [], "type": 0}]
这是我的code.py
with open('content.json', 'r') as current_stuff:
before = json.loads(current_stuff.read())
before_set = []
for b in before:
before_set.append(b['content'])
setx = str(before_set)
string9 = str(''.join( c for c in setx if c not in "[{'}]" ))
print (string9)
印刷品显示出这个输出:
Let’s go home \n\xa0\nNow
我希望它像这样打印出来
Let’s go home
Now
当我这样做时有效:
print ("Let\u2019s go home \n\u00a0\nNow")
我该如何解决这个问题?