文章目录 一、题目二、代码 一、题目 二、代码 思路: 利用 Python 的地板除法 很简单得到一个整数的商结果 A,B = map(int,input().split()) Q = A//B R = A % B print("%d %d" % (Q,R))