[Python] append vs extend 성능 테스트


[Python] append vs extend 성능 테스트

append vs extend performance # "append"의 경우 작은 데이터일 경우 "extend"와 크게 성능차이가 나지 않는다. 다만, 데이터가 커질 수록 데이터양에 따라서 "extend"가 더 빠르다. 테스트 append extend # 여러번 테스트를 해봐도 "extend"가 더 빠르다. 참고 링크 Python List append() vs extend() | Finxter Python List append() vs extend() Python / By Chris A profound understanding of Python lists is fundamental to your Python education. Today, I wondered: what’s the difference between two of the most-frequently used list methods : append() vs. extend() ? I shot a small video exp...


#append #extend #python

원문링크 : [Python] append vs extend 성능 테스트