当定义全局变量的时候 例如 var s = “golang” //此时编译器会根据值做类型判断常量的定义 const const a = “golang”iota iota 碰见关键字const 会归0, 在同一个const中, 换一行 iota自增1 在同一行中的变量 会相等