📜  要列出的字符串列表 - Python 代码示例

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

代码示例3
import ast

l1 = ['aa','bb','cc']
s = str(l1)
ast.literal_eval(s)
>>> ['aa','bb','cc']