(4) is not a constant)
字符串常量
双引号中的任何值都是 Go 中的字符串常量。...type %T, f's type %T, c's type %T", i, f, c)
}
在上面的程序中,每个变量的类型由数字常量的语法决定。...当我们运行上面的程序,它会打印出 i's type int, f's type float64, c's type complex128。
现在我希望下面的程序能够正确的工作。...",intVar, "\nint32Var", int32Var, "\nfloat64Var", float64Var, "\ncomplex64Var",complex64Var)
}
在这个程序中...,它默认开始值是0,const中每增加一行加1:
const (
x = iota // x == 0
y // y == 1
z // z == 2
w //w =