表 6.1:比較的特殊方法特殊方法用法說明 __lt__(self,other) < y 若 x 小於 y 則傳回 True x ... 第三個辦法(也是最 Python 化的辦法)為: if not isinstance(other, ...
確定! 回上一頁