공부

[Python] strip in map function

승가비 2022. 6. 6. 02:50
728x90
>>> value = '1, 2, 3'
>>> list(map(str.strip, value.split(',')))
['1', '2', '3']

 

728x90