问题
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
回答1:
You are missing the *
operator after -1.
回答2:
This results from an int object that Python is trying to 'call' like so:
>>> 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
来源:https://stackoverflow.com/questions/15015163/int-object-not-callable-error-in-python