1. 缺少导入 matplotlib 库的代码。
  2. 变量 p 没有定义。
  3. Route 变量没有被定义或赋值。
  4. 在绘制路线时,plt.show() 应该在 for 循环外部,否则会在每次循环中都显示一张图表。
coordinates = 35354149351755455520153025302050104355603060for i in rangep l = lenRoutei for j in rangel ll = lenRouteij Routeijinsertll0 Routeijinsert00# 绘制路线图 fig ax = p

原文地址: https://www.cveoy.top/t/topic/fUXd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录