1

This following section of code gave me the error

fd=((1/(sd*sqrt(6.28)))*2.718**((-1(d-average)**2))/(2*sd**2)))

This is the error

Traceback (most recent call last):
  File "C:\Users\etc
    fd=((1/(sd*sqrt(6.28)))*2.718**((-1(d-average)**2))/(2*sd**2))
TypeError: 'int' object is not callable

i cannot find where the int object is "not callable"

thanks

4

2 回答 2

2

*在 -1 之后缺少运算符。

于 2013-02-22T01:08:16.050 回答
0

这是由 Python 试图像这样“调用”的 int 对象造成的:

>>> 2*(1+3)
8
>>> 2(1+3)        #note missing *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'int' object is not callable
于 2013-02-22T01:14:01.750 回答