''.join(리스트)
list = ['a', 'b', 'c', 'd']
print(''.join(list)) #abcd
print(' '.join(list)) #a b c d
'파이썬' 카테고리의 다른 글
[Python] 리스트 위치 바꾸기 / 스왑 / swap (0) | 2024.08.07 |
---|---|
[Python] 2진수, 8진수, 10진수, 16진수 변환 (0) | 2024.08.07 |
[Python] 객체가 비어있는지 확인방법 / if ~ / if not ~ (0) | 2024.08.07 |
[Python] find() / index() / rfind() / rindex() (0) | 2024.08.06 |
[Python] enumerate() (0) | 2024.08.06 |