float(5) float(5.34) float(25) float(0) float(0) float(1) float(0)
请注意,当转换以数字开头的字符串时,(float) 函数会使用该数字。如果字符串不以数字开头,(float) 函数会将字符串转换为数字 0。