说明:返回整数除法时的商和余数。
def divmod(x, y): ''' 返回整数除法时的商和余数 :param x: 被除数 :param y: 除数 :return: 商和余数的元组 '''
示例:
运行示例
print(divmod(233, 7))