单选题

运行下面的程序,结果是?( )

h=[-2,-1,0,1,2,3]
n=len(h)
s=0
for i in range(n):
    s=s+bool(h[i])   
print(s)


A

0

B

1

C

5

D

6

赣ICP备20007335号-2