标签: python-3.x
for i in range(0, usr): x = utility_clustered[i] user_avg[i] = sum(a for a in x if a > 0) / sum(a > 0 for a in x)
我得到了错误:
RuntimeWarning:long_scalars中遇到无效值
消除错误的可能方法是什么? 还是要正确运行代码,需要进行哪些纠正?