第 6 步:让我们创建允许玩家多次猜测的循环。

我们将在程序中使用for循环。请记住, for循环必须包含代码才能运行!

  • 单击逻辑,转到Loop with Range
  • 在 GRAPHICS 中,将Say并将其放入for循环中,使其前面有一个····
  • .say()分配给computer

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)