一.变量\字符编码 Variables are used to store information to be referenced and manipulated in a computer program. They also provide a way of labeling data with a descriptive name, so our programs can be understood more clearly by the reader and ourselves. It…
本章内容概要 1.循环结构之 for 循环 本章内容详解 1.循环结构之for循环 1.1 语法结构 for 变量名 in 可迭代对象: #字符串 列表 字典 元组 for 循环的循环体代码 针对变量名的命名 如果带取值的数据有明确的指向 最好见明知意 例: form name in 学习姓名名单 for addr in 地址信息 如果没有明确的指向 可以使用常见的字母 i j k item v .... 用 while 和 for 循环打印 l1 = ['a', 'b', '…