3六、如何实现[‘1’,’2’,’3’]变成[1,2,3] ?

a=['1','2','3']
b=[int(i) for i in a]
print(b)

输出为:[1, 2, 3]spa