第 11 步:当我们循环遍历每一行时,我们需要循环遍历每一

嵌套循环是在另一个循环内运行的循环。我们使用这些来遍历 2D 列表。

  • ,将Loop through List中。
  • 然后,将变量value更改为column以及我们从my_list循环到row的列表。
  • 在图形和,将Square拖入您的 for 循环。它应该缩进十二个空格。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • 提交作品
  • 下个活动
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)