将list中的每个str元素转换成int. list1 = ['1', '2', '3', '4', '5'] 方法一:. numbers1 = [int(x) for x in list1] print(numbers1) # [1, 2, 3, ...
確定! 回上一頁