第 1 步:让我们使用微调器并了解有关创建它的代码行的更多信息。

微调器有两个参数,理论概率和样本空间。 theor_prob值列表确定出现的部分的大小。列表sample_space包含所有可能的结果。

  • 在主题中,单击.拖出Spinner
  • 然后,拖出Set Y ,这样我们就可以改变微调器的位置。

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)