a =['[1,2,3,4],[5,6,7,8]']怎样才能把a转换回
a =[[1,2,3,4],[5,6,7,8]]
a=eval(a[0])
上面的就可以了,稍微list转一下就行了
a =['[1,2,3,4],[5,6,7,8]'] a=list(eval(a[0])) print(a)