# 方法1 eval
# 方法2 ast.literal_eval()
>>> string_list = "[1, 2, 3, 4, 5]"
>>> print(type(eval(string_list)))
<class 'list'>
>>>
>>> print(type(string_list))
<class 'str'>
>>> import ast
>>> print(type(ast.literal_eval(string_list)))
<class 'list'>
>>>