graph_renderer.py 文件源码

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

项目:Lyra 作者: caterinaurban 项目源码 文件源码
def _basic_node_label(self, node, result):
        state = '<font point-size="9">{} </font>'
        states = map(lambda x: state.format(html.escape(str(x)).replace('\n', '<br />')), result.get_node_result(node))
        stmt = '<font color="#ffffff" point-size="11">{}</font>'
        stmts = map(lambda x: stmt.format(html.escape(str(x))), node.stmts)
        node_result = [item for items in zip_longest(states, stmts) for item in items if item is not None]
        return self._list2table(node_result, escape=False)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号