Python 类型错误';int';不可呼叫

Python 类型错误';int';不可呼叫,python,python-2.7,typeerror,Python,Python 2.7,Typeerror,我在以下代码中遇到问题,导致类型错误:'int'不可调用 import math itr = int(raw_input()) arr = [] for i in xrange(0,itr): inp = raw_input() a , b , c , d = [int(s) for s in inp.split()] if b==1: e = c else: g = d+1 h = b-1

我在以下代码中遇到问题,导致类型错误:'int'不可调用

    import math 
itr = int(raw_input())
arr = []
for i in xrange(0,itr):
    inp = raw_input()
    a , b , c , d = [int(s) for s in inp.split()]
    if b==1:
        e = c
    else:
        g = d+1
        h = b-1
        e = c(math.pow(g , h))
    if e>=a:
        f = "ALIVE AND KICKING"
    else:
        f = "DEAD AND ROTTING"
    arr.append(f)
for i in xrange(0 ,itr):
    print arr[i]

请帮忙。。。。。如果你想用
c
乘以
math.pow(g,h)
,请使用:


您还可以使用以下方法:

e = c * (g**h)
而不是pow函数。**是Python中的内置运算符。所以

print 2**8

将产生
256
。您可以阅读**运算符和所有其他基本运算符

c
是整数。你为什么试图用
math.pow(g,h)
作为参数来调用它?你希望那条线的结果是什么?请看这个问题
print 2**8