立即学习:https://edu.csdn.net/course/play/26676/338785?utm_source=blogtoedu
for 循环语句
基本规则:
for 循环规则:
4个空格缩进 语句块
用于for循环的都是可迭代对象。
可迭代对象都会有__iter__方法。
立即学习:https://edu.csdn.net/course/play/26676/338785?utm_source=blogtoedu
for 循环语句
基本规则:
for 循环规则:
4个空格缩进 语句块
用于for循环的都是可迭代对象。
可迭代对象都会有__iter__方法。