Python 3 教程
Python 內置函數
float() 函數用于將整數和字符串轉換成浮點數。
float()方法語法:
class float([x])
返回浮點數。
以下實例展示了 float() 的使用方法: