diff --git a/countPm.py b/countPm.py index 3c54d696..4d631445 100644 --- a/countPm.py +++ b/countPm.py @@ -3,8 +3,7 @@ def count_pm(*args): alist = list([round(i*2-8,2) for i in args]) #计算三种颗粒浓度 result = [] for pm in alist: - pm_abs = abs(pm) - result.append(generate_iso_code(pm_abs)) + result.append(generate_iso_code(abs(pm))) print (result) return result