This does not convert the string to a long but preserves the decimal value. a_string = "123.456". a_float = float(a_string). print(a_float). Output. 123.456.
確定! 回上一頁