递归 class Solution: def find(self,matrix,flag,word,row,col,x,y,deep): if x >= 0 and x < col and y >= 0 and y < row and deep <= len(word) and matrix[y][x] == word[deep-1] and flag[y][x] == 0: if deep == len(word): return True flag[y][x] = 1 ...