From a1e962ef1745e65fec2b7c07485fdb1f799c9e70 Mon Sep 17 00:00:00 2001 From: p4m9yiulv Date: Mon, 29 Sep 2025 23:21:36 +0800 Subject: [PATCH] =?UTF-8?q?Add=20=E8=AE=A1=E7=AE=97=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 计算程序检测 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 计算程序检测 diff --git a/计算程序检测 b/计算程序检测 new file mode 100644 index 0000000..8b90faf --- /dev/null +++ b/计算程序检测 @@ -0,0 +1,5 @@ +# 计算从 1 到 100 的和 +total = 0 +for i in range(1, 101): + total += i +print("1 到 100 的和是:", total)