用python来解答这个问题

输出100以内所以能被3或5整除的数之和,用python才解答

newList = []
for i in range(1,100):
  if i % 3 == 0 or i % 5 == 0:
    newList.append(i)
print("和为:{}".format(sum(newList)))

img