复杂Python代码看不懂,分享两个工具,事半功倍!
Ryven
Ryven是一个Python代码可视化工具!
学习地址:https://github.com/leon-thomm/Ryven
![](http://mmbiz.qpic.cn/sz_mmbiz_png/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNwHyvELdGg9bfFMtgLehyfSZkYu9MaIUUr6q2qb4vHIZ93OPjKGI6ew/640?wx_fmt=png&from=appmsg)
一些案例,
![](http://mmbiz.qpic.cn/sz_mmbiz_png/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNkAARphwwMqDOb8jDDZxSXm2BtY9MFmKsP8k6qgVTg4CgsUJCnAVgpg/640?wx_fmt=png&from=appmsg)
![](http://mmbiz.qpic.cn/sz_mmbiz_png/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggN7nd70mUicEU3teKSNcpiaibuYib6nhGjWmR2ibhYkJhpu5Ok3EF1Z5MGvug/640?wx_fmt=png&from=appmsg)
![](http://mmbiz.qpic.cn/sz_mmbiz_gif/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNp0MnY6x7Pia203picSRBlgCjh7ib6as7iaWCXK9XlPqUeBMJn4Bt8lPxSA/640?wx_fmt=gif&from=appmsg)
![](http://mmbiz.qpic.cn/sz_mmbiz_gif/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNlfpW7ZgVibWLANMiaXic780XUEYEVCoTG99NicMYLYOGlt2ImHSiacFINMg/640?wx_fmt=gif&from=appmsg)
Python导师
Python导师,即Python Tutor,是一个代码调试工具。
学习地址:https://pythontutor.com/
![](http://mmbiz.qpic.cn/sz_mmbiz_png/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNiajbQQicPj0mmR2Oic8GNicPEcNfEVtcibgufB1ibygaefL23y3VYeMmYwXQ/640?wx_fmt=png&from=appmsg)
优势如下:
- 包含一个独特的逐步可视化调试器和AI导师,可视化展示代码每执行一行的结果;
- Python Tutor目前支持Python, Java, C, C++, 和JavaScript编程语言。
一个案例:
![](http://mmbiz.qpic.cn/sz_mmbiz_gif/UGxk62Z8n3TkeLDN0OKIVs2MSHrnhggNib8aOa87hGrwLLibshXfNTBWhKSiaO19m2TnYW8Ko1co7Oyt0V2EoCPhw/640?wx_fmt=gif&from=appmsg)