第8步:每一轮我们要显示一个新的字母。所以每次循环运行时,我们会向 revealed_letters 添加一个 letter

记住 += 允许我们在循环运行时向数字或字母添加一个值。

  • 在 for 循环内部输入: revealed_letters += letter
  • 将另一个 Say 指令拖动到循环内部。将 .say() 中的字符串更改为 revealed_letters
  • Wait 拖动到循环内部。

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)