Use the function float() to turn a string into a float string = '123.456' number = float(string) number # Output: # 123.456.
確定! 回上一頁