#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목[re]List methods 질문2021-10-19 00:34작성자수업도우미 정수연아래 내용을 보시면 append는 파라미터로 하나의 값이 들어가는 반면 extend는 iterable 객체가 들어갑니다. iterable객체는 반복 가능한 객체를 말하며 list, dict, set 등이 있습니다. 따라서 주어진 리스트에 무언가를 추가하는 것은 같지만 append는 하나의 값만 extend는 여러 개의 값을 한번에 추가할 수 있는 메서드로 보시면 됩니다.(출처: https://docs.python.org/3/tutorial/datastructures.html)list.append(x)Add an item to the end of the list. Equivalent to a[len(a):] = [x].list.extend(iterable)Extend the list by appending all the items from the iterable. Equivalent to a[len(a):] = iterable. 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전List methods 질문ㅇㅇ2021-10-18다음string.max 질문ㅇㅇ2021-10-18 Powered by MangBoard | 워드프레스 쇼핑몰 망보드