第 4 步:让我们准备在玩家开始猜测之前提示他们密码的长度!

  • 点击逻辑,然后并拖出Length
  • 将变量的名称从var_lengthpassword_length
  • len()中的参数从my_varpassword
  • 单击图形和.拖出Say并将字符串替换为password_length

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)