#python #anaconda #jupyter-notebook #visual-code #html #css #javascript #http 제목python default argument values2019-04-08 21:19작성자화목반python.org 의 more about defining functions 쳅터에서 default argument values라는 것을 보게되었습니다.Important warning: The default value is evaluated only once. This makes a difference when the default is a mutable object such as a list, dictionary, or instances of most classes. 이런 문구를 보고 어떤것을 말하는것인지 실행해보니와 같이int 와 string 에 대해서는 각각에 대해 따로 초기화되고list 에 대해서는 호출할때마다 list가 공유됨을 알 수 있었습니다.int, string 과 list 간의 어떤 차이 때문에 이런 결과가 나오는건가요? 목록수정삭제답변글쓰기 댓글 [0] 댓글작성자(*)비밀번호(*)내용(*) 댓글 등록 더보기이전string과 list에 대한 인덱스를 0부터 줘야 한다고 한 이유drsungwon 2019-04-08다음list를 함수의 입력파라메터로 하면서 default 처리를 원할때drsungwon 2019-04-08 Powered by MangBoard | 워드프레스 쇼핑몰 망보드