def str2float(s):
return reduce(lambda x , y : 10 * x + y ,map(char2num,s.split('.')[0] + s.split('.')[1]))/10**len(s.split('.')[1])
Sign in to make a reply
Pmz丶
def str2float(s):