官网:http://www.graphviz.org/ 安装 sudo apt install graphviz dot -version 使用 dot -Tpng math.gv -o math.png math.gv是存放dot语句的文本文件。 math.png是输出文件的文件名。