若要求出把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)
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复