python-map函数

2022-05-10  本文已影响0人  jinjin1009

a='1,2,3'

b=a.split(',')
b
['1', '2', '3']

list(map(int,b))
[1, 2, 3]

上一篇下一篇

猜你喜欢

热点阅读