尝试将代码中的for people1 in people改成for people1 in range(len(people))
for people1 in people
for people1 in range(len(people))