本地测试用例通过,在线却输出相反的结果?是Python3和Python2的原因吗? # -*- coding:utf-8 -*- class Solution: def hasPath(self, matrix, rows, cols, path): # write code here m = [[0]*cols for i in range(rows)] for i in range(rows): for j in range(cols): m[i][j] = matrix[i*...