使用 map 函数可以实现列表数据元素类型的转换, 而无需通过循环。 则将列表 s=[' 1' , ' 2' , ' 3 ' ]
map(int, s)
map(s, int)
list(map(s, int))
list(map(int, s))