# _*_ coding: utf-8 _*_ from functools import reduce def str2float(s): L = s.split('.') return reduce(lambda x, y:x*10+y, map(int, L[0])) + reduce(lambda x, y: x*10+y, map(int,L[1]))/(10**(len(L[1])))
Sign in to make a reply
用户6386657610