Python len()
사용 버전 : Python 3.6.8
len()은 길이 또는 보유 인자의 개수를 알려줍니다.
문자열(string)의 경우입니다.


바이트(bytes)의 경우입니다.


튜플(tuple)의 경우입니다.


리스트(list)의 경우입니다.


레인지(range)의 경우입니다.


딕션어리(dict)의 경우입니다.


셋(set)의 경우입니다.


프로즌 셋(frozenset)의 경우입니다.


끝.
파이썬 len()에 대해서 알아보겠습니다.
괄호 안에는 문자열, 바이트, 튜플, 리스트, 레인지, 딕션어리, 셋, 프로즌 셋이 들어갑니다.
len()은 길이 또는 보유 인자의 개수를 알려줍니다.
문자열(string)의 경우입니다.


바이트(bytes)의 경우입니다.


튜플(tuple)의 경우입니다.


리스트(list)의 경우입니다.


레인지(range)의 경우입니다.


딕션어리(dict)의 경우입니다.


셋(set)의 경우입니다.


프로즌 셋(frozenset)의 경우입니다.


끝.
카테고리: Standard Library, Python
댓글
댓글 쓰기
궁금한 점은 댓글 달아주세요.
Comment if you have any questions.