NameError: name 'acc' is not defined

 

printf打印代码在if(n*num_batch+i)%100==0:的作用域范围内吗?