一月7日

for 循环
打印 1 ~ 10 的数字
for i in 数组:
代码块
for 循环第一种使用方式,将集合的元素一个一个的进行获取打印
nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for i in nums:
print(i)
原文地址:https://www.cnblogs.com/zxpnb/p/14245311.html