📅  最后修改于: 2022-03-11 14:45:08.259000             🧑  作者: Mango
# if you have arrays of number
a = [10.000, 20.000, 25.000]
b = [int(i) for i in a]
print(b) # [10, 20, 25]
# if you have arrays of number which are string
a = ["10.000", "20.000", "25.000"]
b = [i.replace(".", "") for i in a]
print(b) #['10000', '20000', '25000']