for循环

for i in range(0,10,2):
    print("loop:",i)

loop: 0
loop: 2
loop: 4
loop: 6
loop: 8

posted @ 2020-02-27 23:06  5444de  阅读(103)  评论(0编辑  收藏  举报