更新 q4_3b/zhifang_time.py

This commit is contained in:
2026-07-05 21:06:15 +08:00
parent 79a6e0d081
commit 7ebc0380a3

View File

@@ -10,7 +10,7 @@ with open('movie.json', 'r', encoding='utf-8') as f:
plt.figure(figsize=(12,8)) plt.figure(figsize=(12,8))
plt.hist( duration, # 数据 plt.hist( duration, # 数据
bins=10, # 分成几个柱子 bins=5, # 分成几个柱子
color='#3498DB', # 颜色 color='#3498DB', # 颜色
edgecolor='white') # 柱子边框颜色 edgecolor='white') # 柱子边框颜色
plt.title('时长分布', fontsize=14) plt.title('时长分布', fontsize=14)