15 步:现在让我们格式化新时间,以便显示它是如何变化的。

  • 并将Time Format - 09:45 AM拖到主函数的底部。
  • new_time my_time my_datetime更改为new_datetime
  • 在 print 语句中,还将my_time更改为new_time
  • 点击运行然后点击控制台按钮查看新时间!

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)