In [12]:
index= float(input('请输入污染指数'))
if 0<index<100:
    print('天气贼好,快粗去玩吧')
elif 100<index<200:
    print('轻度污染,不要在外面呆太长时间')
elif 200<index<300:
    print('中度污染,出门记得戴口罩')
elif 300<index<500:
    print('重度污染,没什么大不了的事儿就甭出门了')
elif index>500:
    print('此地不宜生存,请迅速转移')


请输入污染指数1000
此地不宜生存,请迅速转移