#列出1到100,不被2也不被3整除的數字 for i in range(1,101): if i%2 !=0 and i%3 !=0: print(i)