# -*- coding: utf-8 -*-
def returnTwoNum(a, b):
return a,b
print(type(returnTwoNum(1, 2)))
print(divmod(returnTwoNum(1,2)))
错误提示:
Traceback (most recent call last):
File "del.py", line 10, in
divmod((returnTwoNum(1,2)))
TypeError: divmod() takes exactly 2 arguments (1 given)
原本是想要把returnTwoNum返回的两个数传给divmod,但是返回的是tuple,请问这个该如何修改?谢谢