python有什么方法能同时对两个数取商和取余

例如__(a,b)等价于(a//b,a%b)

阅读 2.7k
1 个回答

当然是内置函数 divmod

推荐问题