下列程序段中自定义函数do(n)的作用是?( )
def do(n):
s=0
f=1
for i in range(1,n+1,2):
s=s+1/i*f
f=-f
return s
print(do(10))
正在加载题目数据…
子题
该题型需在试卷/作业中作答,单题练习暂不支持
答案解析