def str2float(s): return reduce(lambda x,y:10*x+y, map(int, s[:s.index('.')]+s[s.index('.')+1:])) / (10**s.index('.'))
Sign in to make a reply
用户7495839230