第 6 步:引入最新的数据类型:布尔值!让我们输出我们的第一个布尔值condition_1a来查看它的值。

布尔表达式创建TrueFalse结果。 TrueFalse的数据类型为Boolean ,或简称为bool

  • ,将Output Variable拖到下一行。
  • 像这样设置它以输出condition_1a的值: print( "condition_1a is" , condition_1a )
  • 点击运行并输入一年。您在控制台中看到的输出是什么?

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)