반응형
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 | 31 |
Tags
- msSQL
- upper_bound
- BFS
- @P0
- 백준
- 처우협의
- 연결요소
- 오퍼레터
- dfs
- 백트래킹
- Docker
- 소프티어
- compose
- boj #19237 #어른 상어
- 6987
- Kafka
- incr
- 퇴사통보
- 이분탐색
- 13908
- OFFSET
- BOJ
- softeer
- 매개변수탐색
- 성적평가
- 물채우기
- 파라메트릭
- 경력
- 처우산정
- 기술면접
Archives
- Today
- Total
기술 블로그
class self 본문
728x90
반응형
class self
1 2 3 4 5 6 7 8 9 10 11 12 13 | class person : def __init__(self, name, age = 10) : #print(self, 'is generated') self.name = name self.age = age p1 = person('Bob', 30) p2 = person('Kate', 20) p3 = person('Candy') print(p1.name, '은 ', p1.age, '살이다.') print(p2.name, '은 ', p2.age, '살이다.') print(p3.name, '은 ', p3.age, '살이다.') | cs |
728x90
반응형
'Python' 카테고리의 다른 글
정규표현식 간단 연습 (0) | 2019.10.26 |
---|---|
정규표현식 (0) | 2019.10.26 |
class 연산자 재정의 (0) | 2019.10.26 |
class 상속 (0) | 2019.10.26 |
class staticmethod (0) | 2019.10.26 |