go 语言笔记
var表示变量, type表示类型type person struct {name stringage int}var P person // P现在就是person类型的变量了P.name = "Astaxie" // 赋值"Astaxie"给P的name属性.P.age = 25 // 赋值"25"给变量P的age属性fmt.Printf("The person's name is %s", ...
原创
2018-03-08 00:35:08 ·
189 阅读 ·
0 评论