go(一)变量
摘要:
package mainimport ( "fmt")func main() { var a int a = 1 var a1 string a1 = "my is a1" b := 2 b1 := "my is b1" fmt.Println(a, "^^^^", a1) fmt.Println(b, "^^^^", b1)}[ `go run test.go` | done: 208.870174ms ] 1 ^^^^ my is a1 2 ^^^^ my is b1接下来是件很有趣的,有了 阅读全文
posted @ 2013-09-22 13:43 wangbokun 阅读(240) 评论(0) 推荐(0) 编辑