2018年7月21日

python走迷宫

摘要: #coding=utf-8arr = []lu = []def zou(m,y,x,_y,_x): #到达新点,将当前所在点设置为墙 m[y][x] = 0 #将当前所在点添加进路线 lu.append([x,y]) if y==_y and x==_x:#判断是否到了目的地 arr.append( 阅读全文

posted @ 2018-07-21 10:37 听风的夜 阅读(764) 评论(0) 推荐(0) 编辑

导航