[此贴子已经被作者于2018-8-4 09:33编辑过]
s = 0 for i in (1,100): if (i%2 !=0)or(i%3!=0)or(i%5!=0)or(i%7!=0): s+=i print(s)