본문 바로가기
데이터 분석/R_Python

Python) 클래스

by nomfang 2021. 11. 14.
728x90
반응형

Class


class Man:
    def __init__(self, name):  // 생성자..?
        self.name = name
        print("init")

    def hello(self):
        print("hello " + self.name)
반응형

'데이터 분석 > R_Python' 카테고리의 다른 글

Python/R ) 1. Python 이란?  (0) 2021.08.27

댓글