개발일지/Python
[Python] 리스트 초기화
chi_chi
2020. 5. 25. 18:00
python list 초기화
1. list data만 삭제 (list를 비어있는채로 만들때)
list = [1,2,3,4,5]
del list[:]
2. list 자체를 메모리에서 삭제
del list