def str2float(s): count = 0 for x in list(s): if(x!='.'): print(count) count = count*10 + int(x) count = count / (10**(len(s) - s.index('.')-1)) return count
Sign in to make a reply
左转是绿灯