1. for语句为循环语句,后面多接序列或字符串(注意字符串书写时要加入引号)
    2. 对算数递增的数值进行迭代
    3. 给予用户定义迭代步骤和暂停条件的能力x
    1. >>> i = 'words'
    2. >>> for w in i:
    3. print(w)
    4. w
    5. o
    6. r
    7. d
    8. s
    9. >>> for i in 'words':
    10. print(i)
    11. w
    12. o
    13. r
    14. d
    15. s
    16. for i in range(10):
    17. print(i, end = '\t')
    18. 0 1 2 3 4 5 6 7 8 9