摘要: package main import ( "fmt" ) func main() { a := [...]int{1, 3, 6, 4, 8, 0, 6} fmt.Println(a) num := len(a) for i := 0; i < num; i++ { for j := i + 1; j < num; j++ { ... 阅读全文
posted @ 2017-10-31 22:39 Erick-LONG 阅读(215) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" ) func main() { LABLE1: for { for i := 0; i 3 { break LABLE1 } } } fmt.Println("ok") } 阅读全文
posted @ 2017-10-31 22:13 Erick-LONG 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1 1024 1.048576e+06 1.073741824e+09 阅读全文
posted @ 2017-10-31 21:47 Erick-LONG 阅读(181) 评论(0) 推荐(0) 编辑
摘要: package main import ( "fmt" "strconv" ) func main() { var a int = 65 b := strconv.Itoa(a) a, _ = strconv.Atoi(b) fmt.Println(a) } 阅读全文
posted @ 2017-10-31 21:42 Erick-LONG 阅读(143) 评论(0) 推荐(0) 编辑