1、安装pylatex模块:pip install pylatex[matrices]
3、上面的代码运行之后,其实是成功了的,至少得到了一个Tex文件。
5、打开overleaf网页,在线编译Tex文件,得到PDF文件。