pyhton3 出错求大佬帮忙!IndexError: list index out of range
def society(graph_matrix,person):i=0I=0a=[]b=[]x=int(person)n=len(graph_matrix)while i <= n:for j in range(n):if sum(graph_matrix[x])>=2:if graph_matrix[x][j]==1:a.append(j)else:pri...
原创
2019-08-26 15:49:38 ·
375 阅读 ·
0 评论