列表和集合 / 迭代器和生成器

def counter(low, high, step):
    current = low
    while current <= high:
        yield current
        current += step


for c in counter(392):
    print(c)
# printed 3, 5, 7, 9