第 8 步:我们刚刚打印了第一个布尔变量的值。让我们证明它确实是一个布尔值!

使用type()时,您通常会看到缩写形式的数据类型。例如, boolstrint

  • Print Type拖到下一行并对其进行编辑,以便清楚地输出condition_1a的类型。
  • 点击运行,输入一个数字,然后检查输出。 type( condition_1a )的输出是什么?
  • 根据您的输入, 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)