Discuss / Python / Q3

字符串转浮点

def str2float(s): int, float = s.split('.') return str2int(int) + str2int(float) / (10 ** len(float_))


  • 1

Reply