From 79a6e0d0815d55ee8525edeca2418d30f72cc3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E7=8E=B2=E7=8E=B2?= <2509165008@student.example.com> Date: Sun, 5 Jul 2026 21:05:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20q4=5F3a/zhifang=5Frating.p?= =?UTF-8?q?y?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- q4_3a/zhifang_rating.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q4_3a/zhifang_rating.py b/q4_3a/zhifang_rating.py index dd0e9c7..5e8b9bc 100644 --- a/q4_3a/zhifang_rating.py +++ b/q4_3a/zhifang_rating.py @@ -11,7 +11,7 @@ with open('movie.json', 'r', encoding='utf-8') as f: plt.figure(figsize=(12,8)) plt.hist(rating, # 数据 - bins=10, # 分成几个柱子 + bins=5, # 分成几个柱子 color='#3498DB', # 颜色 edgecolor='white') # 柱子边框颜色 plt.title('评分分布', fontsize=14)