TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。
03-22
1591
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
07-01
1942
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。