import random import math import matplotlib.pyplot as plt import city class no: #该类表示每个点的坐标 def __init__(self,x,y): self.x = x self.y = y def draw(t): #该函数用于描绘路线图 x = [0] * (m+1) y = [0] * (m+1) for i in range(m): x[i] = p[t[i]].x y[i] = p[t[i]].y x[