可视化python编程 PythonTutor

本地搭建 PythonTutor 因为国外网址 https://pythontutor.com/ 太慢 下载zip包 https://gitee.com/Bri

本地搭建 PythonTutor

因为国外网址 https://pythontutor.com/ 太慢

  1. 下载zip包
    https://gitee.com/BrightXu/OnlinePythonTutor

  2. 解压

  3. 安装并运行

pip install bottle
cd OnlinePythonTutor/v5-unity/
python bottle_server.py

然后在浏览器中输入:

http://localhost:8003/visualize.html

或者

http://localhost:8003/live.html

即可使用


写一行代码

自动形成对应的图像

简直不要太爽

在这里插入图片描述