-4
有人可以帮我解决这个TypeError吗?我试图用数字N来提高5和打印的最后2位数字TypeError:**或pow():'int'和'list'不支持的操作数类型
from sys import stdin, stdout
n = [int(x) for x in stdin.readline().rstrip().split()]
l = 5**n
res = str(l)
stdout.write(res(2)+res(1))
如果你正在试图做到这一点,为什么你使用split()和列表? – MatBailie
看看错误。它说什么?现在看看'5 ** n'。 'n'是一个列表。您不能使用列表作为指数。你需要问自己你想做什么。你是否想要'[5 ** v for v in n]'?或者'5 ** n [0]'?或者也许别的东西? –