我是python编程的新手,所以请原谅我的无知。我正在制作一个网络刮板作为测试项目,但我有一个问题,它的一部分,我试图使一个整数变量。episodes)for p in episodes:
title = episodes[{ep}].text.strip() ### <---- Issue [{ep}] <---TypeError
下面是我的代码:n = int(input("Enter n, the dimension of the adjacencyformat(a, b, path)) print("\nThere's not a path between {} and {} :(\n".format(a, b))TypeError: list indices must be inte