单选题

下列程序段的运行结果是? ( )

def s(n):

if n==0:

return 1

else:

return n +s(n-1)

print(s(7))

A

29

B

27

C

1

D

0

赣ICP备20007335号-2