TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。
round函数报错
最新推荐文章于 2024-10-29 14:19:55 发布
TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。