可能重复: 使用int将带有str的列表转换为列表的最简单方法是什么?
当前数组:['1','-1','1'] 所需数组:[1,-1,1]
['1','-1','1']
[1,-1,1]
python
python ×1