从Python函数生成流程图。
py2flowchart的Python项目详细描述
py2flowchart
Generates flowchart from Python functions and python file.
让简单的Python函数或文件生成流程图。
(流程图可用flowchart.js来显示,也可以用于typora等md文件中)
(在typora中用flow.....
表示流程图)
Examples
frompy2flowchartimport*pyfile2flowchart("xxxx.py","xxxx.html")pyfile2flowchart("xxxx.py","xxxx.html",{"line-width":1,"arrow-end":"open"})get_flowchart("if a>b:\n print(c)")defmyfun():passget_flowchart(myfun)
FAQs
Which Python version? ... Using 3.x AST.
This prog is very limited, it can use for "if,for,while" statement, but not for "break,continue"
Thanks
this programe was inspired by latexify_py
about
- 项目
标签: