ZeroDivisionError:运行程序时将浮点数除以零

时间:2019-05-25 15:38:44

标签: python python-3.x divide-by-zero

运行程序时出现此错误:

Traceback (most recent call last):
  File "main.py", line 43, in <module>
    print("Percentage of positive Tweets: ", (positive/(total * 1.0)))
ZeroDivisionError: float division by zero

需要任何帮助

0 个答案:

没有答案