第 5 步:让我们确保我们的变量名是有意义的,以帮助保持我们的程序井井有条!

  • 将随机变量的名称从my_varrand_num
  • .Display()中的变量参数更改为rand_num

变量名称应始终具有描述性,并解释变量存储的。这使程序更易于理解和调试。

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)