加一个判断 if len(a)!=0: #分母不能为0 print(len(b),round(sum(a)/len(a),1)) else: print('0 0.0')
点赞

相关推荐

正在热议
更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务