a=['1','2','3','4','5','6'] b=list(map(int,a)] print(b) >>> 1,2,3,4,5,6 使用map函数来转换 转载于:https://www.cnblogs.com/khaha/p/8662115.html