Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- PostgreSQL
- 사용자정의예외
- 파이썬 #python #docstring
- docker
- 배포
- 파이썬 #python #예외처리 #exception
- 파이썬 #python #lambda #람다
- aw3
- 연산자메서드
- 약수 수하기
- 파이썬 #python #class #클래스 #상속
- 파이썬 #python #filter #map #reduce
- Git
- 프로그래머스
- 파이썬 #python #enumerate
- 파이썬기본문법 #파이썬 #python
- jsonb
- spring boot
- 파이썬 #python #가변매개변수 #키워드가변매개변수 #args #kwargs
- 파이썬 #python #전역변수 #지역변수 #eval
- aws
- 파이썬 #python #Comprehension
- redis
- EC2
- 파이썬 #python #os #os.path #glob
- 파이썬 #python #지역함수
- 파이썬 #python #함수 #function
- 파이썬 #python #모듈 #module #import #random #time #calendar #sys
- 파이썬 #python #file #i/o #input #output
- 민감 정보 관리
Archives
- Today
- Total
목록연산자메서드 (1)
Yeonnnnny

■ 은닉(Encapsulation) - class의 내부구조를 숨긴다는 뜻 - property를 이용한 setter, getter ▶ 필드에 접근할 때 getter/setter 메서드를 이용하지 않고 직접 필드를 호출하여 사용 가능 ▶ 하지만 내부적으로는 getter/setter 메서드를 통해 값을 읽고 쓰게 됨 class Mydate: def __init__(self,month): self.__inner_month = month def getMonth(self): print('getMonth() call') return self.__inner_month def setMonth(self): if 1
Python
2023. 10. 29. 18:11