new_list=[]
생성자
new_list=list()
두 방법 모두
print(new_list)
print(type(new_list))
[]
<class 'list'>
로 출력 됩니다.
'개발 > Python' 카테고리의 다른 글
[Python] Guardian Pattern(가디언 패턴) (0) | 2021.08.06 |
---|---|
[Python] Short Circuiting / Short Circuit Evaluation(단축평가, 단락평가) (0) | 2021.08.06 |
[Python] 해당 타입의 자료에 들어있는 메소드 알아내기 (0) | 2021.08.04 |
[Python] 파일 열기, 읽기 (0) | 2021.08.03 |
[Python] 개행(newline) (0) | 2021.08.02 |