1.代码:
for i in range(0,19,2):
    print(i)
注:range() 函数默认将序列递增 1,但是可以通过添加第三个参数来指定增量值。