def str2float(s): n=10**-(s[::-1].index('.')) return int(s[:s.index('.')]) + int(s[s.index('.')+1:])*n
Sign in to make a reply
墨水ixfan