fyinthesky2011@gmail.com
package main import ( "fmt" ) const ( Low = 5 * (iota + 1) Medium High ) func main() { //iota 是个从0开始逐行增1的变数 fmt.Println(Low)//5 fmt.Println(Medium)//10 fmt.Println(High) //15 }
posted on 2015-04-27 15:18 rojas 阅读(229) 评论(0) 编辑 收藏 举报