单选题

若要求出把 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

(a-1,b-1)

B

(a+1,b-1)

C

(a-1,b+1)

D

(a+1,b+1)

赣ICP备20007335号-2