# 0到1000的能整除2的数
def zheng_chu():
ls = []
for i in range(0, 1001):
if i % 2 == 0:
ls.append(i)
return ls
a=zheng_chu()
print(a)
# 0到1000的能整除列表中所有数的数标签:sum,print,ls,某个,整除,append,chu From: https://www.cnblogs.com/zejunliu/p/17088665.html
def list_chu(*args):
sum=[]
for i in range(0,1001):
for j in args:
if i%j==0:
if i not in sum:
sum.append(i)
else:
if i in sum:
sum.remove(i)
break
return sum
a=[2,4,6]
print(list_chu(*a))