立即学习:https://edu.csdn.net/course/play/26676/338785?utm_source=blogtoedu
for循环语句
for 循环规则:
语句块
for i in 'hello':
print(i)
有__iter__函数的都是可迭代对象
items()获取键值对
range()
立即学习:https://edu.csdn.net/course/play/26676/338785?utm_source=blogtoedu
for循环语句
for 循环规则:
语句块
for i in 'hello':
print(i)
有__iter__函数的都是可迭代对象
items()获取键值对
range()