1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
| package main
import "fmt"
var a int var b string var c bool var ( d int e int f int )
var name1 int = 9
var name2 = "ps" var ( age int = 28 address = "China" ) var g, h, i = 78, "uu", true
func test(){ var j int var ( k int l string ) var x, y, z bool
j = 2 k = 78 l = "BJ"
var m, n = 56, "SOHO" var r, s, t string = "hehe", "heihei", "haha" o, p, q := true, false, 87
fmt.Println(j, k, l, x, y, z, m, n, r, s, t, o, q, p) }
func main() { fmt.Println(a, b, c, d, e, f, g, h, i, name1, name2, age, address) test() }
|