除但不能同时被5整除的所有整数每行输出5个数字?
if __name__ == "__main__": t = 0 print("符合要求的整数有:") for ind in range(1, 201): if ind % 7 == 0 and ind % 5 != 0: print(ind, end=" ") t += 1 if t % 5 == 0: print("\n")