第 14 步:我们的circle_display没有更新以显示my_circle的新区域!我们需要解决这个问题。

  • 在逻辑选项卡中,单击并拖出 move_mouse 块Update Display
  • .update()之前的名称更改为circle_display
  • 将括号中的参数从my_var更改为circle_area

点击运行并注意圆形区域显示如何在您移动鼠标时显示不同的浮点数!

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)