From 02a20503c15db3d81036d34b471cd1055f184e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=AD=E5=AE=87=E6=B6=B5?= <2509165016@student.example.com> Date: Sun, 5 Jul 2026 18:42:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20q4-1.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- q4-1.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/q4-1.py b/q4-1.py index dbd889b..5911af7 100644 --- a/q4-1.py +++ b/q4-1.py @@ -25,4 +25,8 @@ plt.tight_layout() # 防止文字重叠 # 保存图片 dpi=150 plt.savefig("q4_1_bar.png", dpi=150) -plt.show() \ No newline at end of file +plt.show() + +打开 VS Code,顶部菜单栏点击 终端 (Terminal) → 新建终端 (New Terminal) +在底部弹出的终端窗口输入安装命令,回车执行 +pip install matplotlib \ No newline at end of file