-
728x90
파이썬에서 __init__ 함수는 어떤 역할을 하는가?
파이썬에서 __init__ 함수는 자바에서 생성자와 비슷한 역할을 한다. 즉, 한 객체에 대한 인스턴스를 생성할 때 호출되는 것이 __init__ 함수라고 보면 되겠다. 다음은 Car 클래스를 생성하고, 이 클래
marshallslee.tistory.com
https://micropyramid.com/blog/understand-self-and-__init__-method-in-python-class/Understanding self and __init__ method in python Class. - Micropyramid
Understand self and __init__ method in python Class? self represents the instance of the class. By using the "self" keyword we can access the attributes and methods of the class in python. "__init__" is a reseved method in python classes. It is known as a
micropyramid.com
initiating 팀 파이트를 개시하는 행위? LOL 한타개시 ㅋ
이니시 ㅋㅋㅋ
반응형'코딩Coding > Mojo★Python파이썬' 카테고리의 다른 글
'속도를 높이는' 병렬 처리를 위한 6가지 파이썬 라이브러리 (0) 2020.08.03 Python-쓰레드(Thread) (0) 2020.08.03 Gentle Intro to Python Webscraping(Eng.) (0) 2020.08.02 Python_Inheritance상속 (0) 2020.08.02 [파이썬 입문 클래스]인스턴스, 메소드, 상속 등class이름은 관습적으로 대문자로 시작합니다. (0) 2020.08.02 Python_함수 정의 def(User-Denfined Function) (0) 2020.08.02 이베스트 API (0) 2020.08.02 Python_Dictionary- Keys, Values, items개념 (0) 2020.08.02