__imul__(self, other) 定義賦值乘法的行為:*= __itruediv__(self, other) 定義賦值真除法的行為:/= __ifloordiv__(self, other) 定義賦值整數(shù)除法的行為://= __imod__(self, other) 定義賦值取模算法的行為:%= __ipow__(self, other[, modulo]) 定義賦值冪運(yùn)算的行為:**= ...
www.dbjr.com.cn/article/1561...htm 2025-5-28