操作者 方法 表達 + 加法 __add__(self, other) a1 + a2 ‑ 減法 __sub__(self, other) a1 ‑ a2 * 乘法 __mul__(self, other) a1 * a2
確定! 回上一頁