警告:这个程序有一个逻辑错误。所以让我们调试它!

规则: strftime使用%来格式化datetime 。更改%后的字母或符号会更改格式

  • 点击运行并查看控制台以查看当前日期格式。
  • 修复.strftime()以在月、日和年之间显示带有斜线 ( / ) 的四位数年份。
  • 点击运行以查看您是否修复了该程序。固定好后点击提交接下来

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)