学习笔记(15):零基础掌握 Python 入门到实战-循环语句,周而复始(一)

立即学习:https://edu.csdn.net/course/play/26676/338785?utm_source=blogtoedu

for 循环语句

基本规则:

for 循环规则:

4个空格缩进 语句块

用于for循环的都是可迭代对象。

可迭代对象都会有__iter__方法。

猜你喜欢

转载自blog.csdn.net/m0_49939521/article/details/108640204