go语言常量和枚举 package main func main(){ const( a = "abc.txt" ) const( // iota默认是从0开始的,且是自增的 a = iota b c ) }