메서드


  • method
  • 클래스의 일부로 정의되어, 해당 객체에 대해서만 사용할 수 있음
my_list = [1, 2, 3]
my_list.append(4)  # append is a method of list objects