分别取商和余数

5年以前  |  阅读数:443 次  |  编程语言:Python 
>>> divmod(10,3)
(3, 1)

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8