若要求出把 a 个元素分成 b 个子集,有多少种可能性,例:function(4,2)返回
值为 7,则返回值中函数的参数分别为?( )
def function(a,b):
if (b == 1 or b == a):
return 1
else:
return function( )+b*function(a-1,b)
(a-1,b-1)
(a+1,b-1)
(a-1,b+1)
(a+1,b+1)