发布网友
共1个回答
热心网友
python求1-100之间所有不是3的倍数的和代码如下:
if __name__ == '__main__':
total = 0
for i in range(1, 101):
if i % 3 != 0:
total += + i
print(total)