第 12 步:接下来让用户输入我们希望在未来跳跃的小时数。

  • 并拖入Ask for Integer 。将变量guess更改为add_time
  • .ask()中的文本更改为"Enter a number of hours to add to the current time:"
  • 单击逻辑。去并拖入Variable Display
  • 将显示变量更改为add_time 。将显示器定位在( -145 , 80 )处。

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)