def str2float(s): int, float = s.split('.') return str2int(int) + str2int(float) / (10 ** len(float_))
Sign in to make a reply
斯普唐纳睿
字符串转浮点
def str2float(s): int, float = s.split('.') return str2int(int) + str2int(float) / (10 ** len(float_))