From ac452de5bf1500c8347242ad34833d469cf9499d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E6=A5=A0=E6=A5=A0?= <2509165032@student.example.com> Date: Thu, 2 Apr 2026 15:50:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6=E8=87=B3?= =?UTF-8?q?=20/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hh.py | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 hh.py diff --git a/hh.py b/hh.py new file mode 100644 index 0000000..6b02462 --- /dev/null +++ b/hh.py @@ -0,0 +1,22 @@ +# 模拟豆瓣Top250数据(本地数据,无需联网) +movie_data = [ + ("肖申克的救赎", "9.7"), + ("霸王别姬", "9.6"), + ("阿甘正传", "9.5"), + ("泰坦尼克号", "9.4"), + ("盗梦空间", "9.4"), + ("这个杀手不太冷", "9.4"), + ("星际穿越", "9.4"), + ("千与千寻", "9.3"), + ("楚门的世界", "9.4"), + ("蝙蝠侠:黑暗骑士", "9.1"), + ("触不可及", "9.3") +] + +# 遍历打印前10条 +count = 0 +for title, rating in movie_data: + print(f"{count + 1}. {title} - 评分: {rating}") + count += 1 + if count >= 10: # 只取前10条 + break \ No newline at end of file