第 2 步:让我们使用列表和循环使这段代码更高效!

  • 删除第二条评论的所有代码。
  • 转到逻辑,单击并在您的第一条评论上方拖出List of Strings
  • ,拖出Loop through List列表。
  • 缩进注释之间的所有代码,使其位于循环内!点击接下来修复图像标签。

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)