用Python统计1000以内能被7整除数但不能被9整除的自然数的个数
收起
i=0 for i in range(1000): if i%7==0 and i%9!=0: print(i)
报告相同问题?