第2步:首先,创建一个变量来存储用户猜测的单词。

我们将使用 "python" 一词作为本课的一个例子。

  • 点击 ,将 String Variable 拖动到程序底部。
  • 将变量名称更改为 word
  • 将字符串更改为你希望用户猜测的单词。

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)