📜  从字符串解析列表 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:19.645000             🧑  作者: Mango

代码示例1
import ast

x = '["A","B","C","D"]'
x = ast.literal_eval(x)
x

# Returns: ['A', 'B', 'C', ' D']