摘要:
__divmod__(self, other):定义当被 divmod() 调用时的行为,返回的值是一个元组:(a//b,a%b) 如: >>>divmod(7, 2) (3, 1) __mod__(self, other):定义取模算法的行为:% 如: >>>7% 2 1 __floordiv__ 阅读全文
posted @ 2023-08-10 19:56
juneyiiii
阅读(159)
评论(0)
推荐(0)
摘要:
https://blog.csdn.net/lovetaozibaby/article/details/108345888?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522169165597816800182760227%2522%25 阅读全文
posted @ 2023-08-10 17:15
juneyiiii
阅读(52)
评论(0)
推荐(0)