📜  列表理解中的嵌套循环 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:06.688000             🧑  作者: Mango

代码示例2
L = [[1, 2, 3],[4, 5, 6],[7, 8, 9]]   
for list in L:
    for number in list:
        print(number, end=' ')
# Prints 1 2 3 4 5 6 7 8 9