第 14 步:现在我们有了一个新的 datetime 对象,让我们提取未来的日期和时间。

  • 并将Date Format - 12/31/2019拖到主功能的底部。
  • my_date更改为new _date并将my_datetime更改为new_datetime
  • 在 print 语句中,还将my_date更改为new_date
  • 点击运行然后点击控制台按钮查看新日期!

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)