题解 | #小明信息#
小明信息
http://www.nowcoder.com/practice/43ccf745188846a688949b91dd9afe4b
package main
import ( "fmt" ) func main() { var name string = "小明" var age int = 23 var gender bool = true fmt.Println(name) fmt.Println(age) fmt.Println(gender) }
输出这里,按如下这种方式,虽然看上去和结果一模一样,但会错误 fmt.Println(name,"\n",age,"\n", gender)