python 取出整数和余数

res = divmod(101, 10)
print(f'res:{res}') # res:(10, 1)
posted @ 2023-10-19 17:25  tslam  阅读(18)  评论(0编辑  收藏  举报