我希望有人能幫我解決這個(gè)問(wèn)題。我有一個(gè)看起來(lái)像這樣的字符串 a = '[{"name": "bob", "age":"11", "participantid":"Me", "sentiment":"NEUTRAL", "content":"Hey, how you doing."}, {{"name": "Roland", "age":"16", "participantid":"boy", "sentiment":"NEUTRAL", "content":"Hey, I'm doing good and you?."}]'我的目標(biāo)是返回列表而不是字符串,所以我期待這樣的事情: a = [{"name": "bob", "age":"11", "participantid":"Me", "sentiment":"NEUTRAL", "content":"Hey, how you doing."}, {{"name": "Roland", "age":"16", "participantid":"boy", "sentiment":"NEUTRAL", "content":"Hey, I'm doing good and you?."}]我已經(jīng)堅(jiān)持了一段時(shí)間,我使用了替換和剝離,但沒(méi)有任何效果。謝謝你的幫助。
刪除字典列表周圍的字符串引號(hào)
三國(guó)紛爭(zhēng)
2022-12-27 16:35:45