공부
[Python] list to map
승가비
2021. 12. 8. 13:21
728x90
l = ['' ,'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
m = {s : i for i, s in enumerate(l)}
https://security-nanglam.tistory.com/427
[python] List to Dict (리스트를 딕셔너리로 변환) 총 정리!!
검색어 : List to Dict List 에서 Dict으로 변환하는 방법에는 여러가지 방법이 있습니다...! string_list = ['A','B','C'] 위와 같은 리스트가 있을때, 딕셔너리로 변환시키는 여러가지 방법들 ..! 1. Dictionary..
security-nanglam.tistory.com
https://leetcode.com/problems/reformat-date/
Reformat Date - LeetCode
Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview.
leetcode.com
728x90