Notice
Recent Posts
Recent Comments
«   2024/10   »
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
10-11 00:15
Archives
Today
Total
관리 메뉴

Developer_Neo

[python] __메소드__ 정리 본문

프로그래밍/Python

[python] __메소드__ 정리

_Neo_ 2022. 1. 17. 11:28
반응형
  __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)    

 

반응형
Comments