📜  列表内的列表 - 无论代码示例

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

代码示例1
board = []    
for i in range(6): # create a list with nested lists
    board.append([])
    for n in range(6):
        board[i].append("O") # fills nested lists with data