파이썬 문법

배열을 string으로 바꾸는 방법

salmon16 2021. 3. 23. 09:55

join의 사용

arr = ['H', 'e', 'l', 'l', 'o']
str_arr = ''.join(arr)

join을 사용하면 간단하게 해결할 수 있다.