美文网首页
3.1Booleans

3.1Booleans

作者: jarod_chan | 来源:发表于2015-11-08 14:43 被阅读17次

Recket用两个常量表示布尔值:#t和#f
boolean?程序区别两个常量。if,cond,and,or用布尔值测试条件,但是,任何非#f的值都被当true对待。

相关文章

  • 3.1Booleans

    Recket用两个常量表示布尔值:#t和#fboolean?程序区别两个常量。if,cond,and,or用布尔值...

  • 3内建数据类型

    本章将详细介绍内建数据类型 3.1Booleans 3.2Numbers 3.3Characters 3.4Str...

网友评论

      本文标题:3.1Booleans

      本文链接:https://www.haomeiwen.com/subject/zygchttx.html