摘要:
arr = [[0] * 6 for row in range(6)] # 声明矩阵arr data = [[1, 2], [2, 1], [2, 3], [2, 4], [4, 3], [4, 1]] # 图各边的起点值和终点值 for i in range(6): # 读取图的数据 # prin 阅读全文
摘要:
arr=[[0]*6 for row in range(6)] #声明矩阵arr #图各边的起点值和终点值 data=[[1,2],[2,1],[1,5],[5,1], \ [2,3],[3,2],[2,4],[4,2], \ [3,4],[4,3]] for i in range(10): #读取 阅读全文