1

コードのこの次のセクションは私にエラーを与えました

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

これはエラーです

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

intオブジェクトが「呼び出せない」場所が見つかりません

ありがとう

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 に答える