我们需要显示可能在屏幕上出现的不同类型的垃圾列表。

  • 创建一个名为 recycleList of Strings 。包括 地球日部分的可回收物。
  • 创建另一个名为 garbageList of Strings ,包括你无法从地球日部分回收的物体。
  • 创建一个名为 all_litter 的变量。将两个列表组合,作为其值:recycle + garbage

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)