我想這個例子:int對象不可調用的錯誤
p = 10000
n = 12
r = 8
t = int(input("Enter the number of months the money will be compounded "))
a = p (1 + (r/n)) ** n,t
print (a)
..但錯誤是:
TypeError: 'int' object is not callable
是Python的看到P作爲功能?如果是這樣,沒有導入模塊我沒辦法做到嗎?
謝謝!
輸入工作,但不是raw_input'NameError:名稱'raw_input'未定義' – 3zzy 2012-01-11 05:43:13
然後你在python 3上。 – wim 2012-01-11 06:25:42