使用map
test_list=['1','3','2','6','8']
print("Original list is: " + str(test_list))
out_list=list(map(int,test_list))
print("Out list is: " + str(out_list))
使用列表解析式
test_list=['1','3','2','6','8']
print("Original list is: " + str(test_list))
out_list=[int(i) for i in test_list]
print("Out list is: " + str(out_list))