Go Mixed 变量声明

Go Mixed 变量声明

package main



import "fmt"



func main() {

   var a, b, c = 3, 4, "foo"  



   fmt.Println(a)

   fmt.Println(b)

   fmt.Println(c)

   fmt.Printf("a is of type %T\n", a)

   fmt.Printf("b is of type %T\n", b)

   fmt.Printf("c is of type %T\n", c)

}

本文转自:http://codingdict.com/article/23565

猜你喜欢

转载自www.cnblogs.com/bczd/p/11975436.html