티스토리 뷰

for함수를 대체하는 join함수


items="zero one two three".split()
items2="zero-one-two-three".split('-')
print(items)
print(items2)

['zero', 'one', 'two', 'three']
['zero', 'one', 'two', 'three']

 


for함수

 


for문안에 if함수
for 함수


zip으로 병렬리스트 


람다함수

 

'데이터 > 아나콘다(jupyter lab)' 카테고리의 다른 글

차트 그리기  (0) 2021.11.28
아나콘다 numpy 사용해서 로또프로그램만들기  (0) 2021.11.27
파이썬 객체지향(private), 상속  (0) 2021.11.27
텍스트 마이닝  (0) 2021.11.27
자료구조  (0) 2021.11.27