def func(): """ 0-500之间输出7的倍数 :return: """ for i in range(0,501): if i % 7 == 0: print(i) func() #调用函数