Developer_Neo
[python] __메소드__ 정리 본문
반응형
| __add__ __mul__ |
__contains__ | __len__ | __getitem__ | __setitem__ | __delitem__ | __iter | |
| str(문자열) | O | O | O | O | O | ||
| list | O | O | O | O | O | O | O |
| tuple | O | O | O | O | O | ||
| set | O | O | O | ||||
| dict | O | O | O | O | O | O |
int클래스
| __add__(self,other) | __sub__(self,other) | __mul__(self,other) | __truediv__(self,other) | __floordiv__(self,other) |
| __mod__(self,other) | __pow__(self,other) | __gt__(self,other) | __ge__(self,other) | __it__(self,other) |
| __le__(self,other) | __eq__(self,other) | _ne__(self,other) |
반응형
'프로그래밍 > Python' 카테고리의 다른 글
| [python] 가비지컬렉션과 레퍼런스 카운트 (0) | 2022.01.18 |
|---|---|
| [python] __iter__( ), __next__( ) (0) | 2022.01.17 |
| [python] 클래스 및 예외처리 (0) | 2022.01.17 |
| [python] 모듈, random모듈, itertools모듈 (0) | 2022.01.17 |
| [python] 파일 입출력 (0) | 2022.01.16 |
Comments