TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。
TypeError: type NoneType doesn’t define round method
——类型错误:round方法无法处理 NoneType类型
原因:基础错误。round()方法可处理数字类型的参数,而不是None/str
方案:1)改参数;2)换方法。