布尔型

关键字bool,占用一个比特位,取值truefalse

布尔型通常用于做条件判断

例子:定义布尔型

var succeed bool
succeed = true

最后更新于