티스토리 뷰

공부

[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

'공부' 카테고리의 다른 글

[docker-compose] environment. LC_ALL=ko_KR.UTF-8  (0) 2022.06.06
[Python] remove "" filter(None, lst)  (0) 2022.06.06
[Python] strip in map function  (0) 2022.06.06
[Kotlin] destructure array  (0) 2022.06.06
[spring] @Cachable  (0) 2022.06.06
[Redis] redis-cli -h 127.0.0.1 -p 6379 FLUSHALL  (0) 2022.05.23
댓글
댓글쓰기 폼