python 去除list外侧的括号 a = ['1234'] type(a) # list b = ' '.join(a) print(b)# '1234' import ast c = ast.literal_eval(b) print(c) # 1234