티스토리 뷰
python list 데이터를 for문을 사용하지 않고 출력하기 위해 join 함수를 사용할 수 있다.
list_a = ['a', 'b', 'c']
print('\n'.join(list_a)
a
b
c
'Programming' 카테고리의 다른 글
python dictionary 정렬하기 (0) | 2021.01.19 |
---|---|
python dictionary에서 최대값 추출 (0) | 2021.01.19 |
python list 정렬하기 (0) | 2021.01.19 |
python list 빈도수 구하기 (0) | 2021.01.18 |
python list 함수 사용하기 (0) | 2021.01.18 |
최근에 올라온 글
글 보관함
- Total
- Today
- Yesterday