我想这个例子: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