赞
踩
Python写循环程序的时候遇到 TypeError: ‘int’ object is not iterable,原因是循环中使用的应该是一组数,将
for i in len(A)
改成
for i in range(len(A))
即可