python里调用公共方法

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

需要调用到commaqi.py里计算AQI的方法

commaqi里定义了公共类AqiCommon(class AqiCommon:)

引入AqiCommon

pm25_aqi=AqiCommon.getIAQI(pm25,'pm25') 

猜你喜欢

转载自blog.csdn.net/u010082526/article/details/81735906
今日推荐