错误代码门户
PythonPython错误代码

ZeroDivisionError

ZeroDivisionError

代码 ZeroDivisionError · Python 报告的问题。

当除法或模运算的第二个参数为零时引发。关联值是一个字符串,指示操作数和操作的类型。

Google Translate · 此内容为自动翻译。技术术语及适用条件请以英文原文为准。

Raised when the second argument of a division or modulo operation is zero. The associated value is a string indicating the type of the operands and the operation.

故障排除与诊断链接

请先确认文档中的产品、版本及发生环境与当前情况一致。