# -*- coding: utf-8 -*-
# @Time    : 2018/8/6 15:30
# @Author  : 骑士计划
# @Email   : customer@luffycity.com
# @File    : 06 for循环.py
# @Software: PyCharm
s1 = 'fkdqe'
# s1[0]
# s1[1]
# s1[2]
# ...
# s1[100]
# print(s1[10])
# index = 0
# while index < len(s1):
#     print(s1[index])
#     index += 1
# 如果对一个数据类型进行循环，或者是一个有限次数的时候，往往要用到for
# for i in s1:  # for 变量 in iterable(可迭代对象：多个元素组成的数据)
#     print(i)
for i in s1:  # for 循环的次数是和和迭代对象的元素个数有关
    print(666)