(*args)
| 1 | # -*- coding:utf-8 -*- |
| 2 | def count_pm(*args): |
| 3 | alist = list([round(i*2-8,2) for i in args]) #计算三种颗粒浓度 |
| 4 | result = [] |
| 5 | for pm in alist: |
| 6 | pm_abs = abs(pm) |
| 7 | result.append(generate_iso_code(pm_abs)) |
| 8 | print (result) |
| 9 | return result |
| 10 | |
| 11 | def generate_iso_code(x): |
| 12 | pm_value = [0.01,0.02,0.04,0.08,0.16,0.32,0.64,1.3,2.5,5,10,20,40,80] #颗粒浓度 |
no test coverage detected