main.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:single-ways 作者: smart-ways 项目源码 文件源码
def view_city(self):
        pos = nx.circular_layout(self.city)
        node_labels = {}
        for u in self.city.nodes():
            node_labels[u] = u
        nx.draw(self.city, pos)
        nx.draw_networkx_labels(self.city, pos, labels=node_labels)
        self.btnViewCity.setEnabled(True)
        plt.show()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号