python for循环n次_Python入门10 —— for循环
1.字符串依次取值students = ['egon', 'lxx', 'alex']i = 0while i < 3:print(students[i])i += 12.针对循环取值操作,while循环并不擅长,于是python提供一个专门循环取值操作:for循环students = ['egon', 'lxx', 'alex']for x in students: # 有几个值就循环几次pri...