单选题

运行下列程序后, 输出的结果是? ( )

def jsh(n):

if n == 1:

return 1

else:

return n + jsh(n-1)

print(jsh(10))

A

1

B

35

C

45

D

55

赣ICP备20007335号-2