嵌套for循环

  • for循环中的for循环
代码
# coding:utf-8
a = [1, 2, 3]
b = [4, 5, 6]
for i in a:
print(i)
print('------')
for j in b:
print(i + j)
print('=======')
print(i, j)
hosted with ❤ by GitHub