# -*- coding:utf- -*- from collections import deque # 引入队列 maze = [ [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,], [,,,,,,,,,] ] # 四个移动方向 dirs = [ lambda x,y: (x+, y), # 下 lambda x…