错误报告,浮动对象不可调用

时间:2019-08-29 15:52:59

标签: python-3.x

def vol_sphere(rad):
    radf=float(rad)
    return (int(str(4.0/3)*(3.14)(radf**3)))
OUTPUT


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-18-23740cf5751c> in <module>
----> 1 vol_sphere(2.3)

<ipython-input-17-e9beec0fa42c> in vol_sphere(rad)
      1 def vol_sphere(rad):
      2     radf=float(rad)
----> 3     return (int(str(4.0/3)*(3.14)(radf**3)))

TypeError: 'float' object is not callable

0 个答案:

没有答案