sum
=
0
for
i
in
range
(
1
,
1000
):
if
i
%
3
=
=
0
or
i
%
5
=
=
0
:
sum
+
=
i
print
(
sum
)
原文地址:https://www.cnblogs.com/jackzz/p/9125562.html
时间: 2024-10-09 12:44:04
sum
=
0
for
i
in
range
(
1
,
1000
):
if
i
%
3
=
=
0
or
i
%
5
=
=
0
:
sum
+
=
i
print
(
sum
)
原文地址:https://www.cnblogs.com/jackzz/p/9125562.html