STEP 1:首先我们需要询问用户一年是否是闰年。

控制台可以接受和存储用户输入,就像在舞台上使用.ask()一样!

  • 转到逻辑和.将Input an Integer程序底部。
  • 将输入变量从my_var更改为year ,并将字符串更改为"Enter a year!"
  • 点击运行并练习使用控制台输入输入。输入您的输入,然后按 Enter!

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)