Give the code for Python obstacle avoidance

The code is as follows: # Define space space = [ [1, 1, 1, 1, 1, 1, 1, 1], [1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 1, 0, 1, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 1], [1, 0, 1, 0, 0, 0, 0, 1], [ 1, 0, 0, 0, 0, 0, 0, 1], [1, 0, 0, 0, 0, 0, 0, 1], [1, 1, 1, 1, 1, 1, 1, 1] ]# define the start and end point start = (1, 1) end = (6, 6)

Guess you like

Origin blog.csdn.net/weixin_35756690/article/details/129456727