在python中,函数float('3.6')的返回值是什么?
函数的返回值是浮点数。在Python中,是一个内置函数,可以将字符串、整数或其他数字类型转换为浮点数类型。在这个例子中,字符串被转换为浮点数。float('3.6')3.6
float()
'3.6'
3.6
float就是转化为浮点数。
扩展阅读:python中login函数 ... python中bgcolor函数 ... python floor函数 ... python中range 函数 ... python代码大全 ... python round什么意思 ... python中loc函数的用法 ... format在python中的用法 ... append在python中的用法 ...