🐍
北商資管Python課程(2)
Search...
Ctrl
K
一. 課程內容
(三) 魔術方法
6. 其他的比較方法
大於: __gt__(self, other) 小於: __lt__(self, other) 大於等於: __ge__(self, other) 小於等於: __le__(self, other)
Previous
5. __eq__(self, other)
Next
7. __getitem__(self, key)