unsupported operand type(s) for *: 'float' and 'decimal.Decimal'

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010082526/article/details/81739648

unsupported operand type(s) for *: 'float' and 'decimal.Decimal'

co=round(co/2,3) 

co_aqi=AqiCommon.getIAQI(co,'co_hour')报错

co_aqi=AqiCommon.getIAQI(0.3,'co_hour')可计算出IAQI值为3

float(round(co/2,2))

猜你喜欢

转载自blog.csdn.net/u010082526/article/details/81739648