运行给定的Python程序,其输出结果是?
h=[-2,-1,0,1,2,3]
n=len(h)
s=0
for i in range(n):
s=s+bool(h[i])
print(s)
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析