可以使用python的内置函数 eval() . 这也适用于转换为python的其他默认数据结构(dict、tuples等)。 类似于:
str = '[\'RED\', \'GREEN\', \'BLUE\']' l = eval(str)