python之一异常问题(TypeError: object of type 'NoneType' has no len()) 将赋值none改为‘’,即: aqi =''aqiInfo =''aqiLevel = ''便可以解决