[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/JavaCoderFan/Python/master/countPm.py [Back]  [Original]

# -*- coding:utf-8 -*-
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))
    print (result)
    return result
    	
def generate_iso_code(x):
	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]  #
	iso = list(range(1,25))   #iso24
	for i in range(len(pm_value)):           #foriso4006
		if pm_value[i] < x 

Web Proxy Viewer  |  New URL  |  Original Page