coordinates = 35354149351755455520153025302050104355603060for i in rangep l = lenRoutei for j in rangel ll = lenRouteij Routeijinsertll0 Routeijinsert00# 绘制路线图 fig ax = p
- 缺少导入 matplotlib 库的代码。
- 变量 p 没有定义。
- Route 变量没有被定义或赋值。
- 在绘制路线时,plt.show() 应该在 for 循环外部,否则会在每次循环中都显示一张图表。
原文地址: https://www.cveoy.top/t/topic/fUXd 著作权归作者所有。请勿转载和采集!