Python 클래스

이현우·2022년 5월 18일
0
# object : python 2.x 버전에서 사용된 방법
# 원래 두가지 class 버전이 있었으나
# python 3.x버전으로 넘어오면서 
# class Person: 처럼 사용하는 것으로 바뀜
class Person(object):
	count = 0 # 클래스 속성

	@classmethod
	def 
profile
GitHub - https://github.com/jenu8628

0개의 댓글