我们有一个列表,可以从中选择随机单词。现在我们需要得到这个随机单词。

  • 点击 。将 Get Value at Index 拖动到程序底部。
  • my_var 更改为 draw_word
  • my_list 更改为 words
  • 将整数替换为 rand_index。这将让我们获得随机选择的值。

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)