大佬们可不可以问下 题目要求用列表推导式求1-100的素数 这样做为什么输出结果不对
for x in range(2,101):
n_list=[x for y in range(2,x) if x%y==0 ]
print(n_list)
相似问题