python修改list中所有元素类型的三种方法 修改list中所有元素类型:方法一:new=list()a=['1','2','3']forxina:new.append(int(x))print(new)方法二:a 元素类型