摘要:
bool,string (u)int,(u)int8,(u)int16,(u)int32,(u)int64,uintptr(指针) byte,rune(字符) float32,float64,complex64(复数),complex128(复数) 阅读全文
posted @ 2019-01-12 23:48
anobscureretreat
阅读(105)
评论(0)
推荐(0)
摘要:
输出 变量后面的类型可以省略。此时,可以把不同类型的变量一起初始化。 与 等效。 输出 注意:使用var 或者:=声明的变量,再次赋值时,直接赋值即可,如:b=7,不能再次使用var或者:= 以上说的都是函数内部变量,也可以在函数外部声明变量,但是必须使用var开始,且不能使用:=,因为go语言要求 阅读全文
posted @ 2019-01-12 23:20
anobscureretreat
阅读(252)
评论(0)
推荐(0)
摘要:
s是空字符串,不会打印 输出 如果要打印出空字符串s,可以使用Printf 输出 阅读全文
posted @ 2019-01-12 23:16
anobscureretreat
阅读(132)
评论(0)
推荐(0)
摘要:
一直下一步即可。 阅读全文
posted @ 2019-01-12 23:06
anobscureretreat
阅读(121)
评论(0)
推荐(0)
摘要:
W3Cschool教程(w3cschool.cn) 阅读全文
posted @ 2019-01-12 11:35
anobscureretreat
阅读(342)
评论(0)
推荐(0)
摘要:
W3Cschool教程(w3cschool.cn) 局部变量计数。 计数! 0 阅读全文
posted @ 2019-01-12 11:33
anobscureretreat
阅读(117)
评论(0)
推荐(0)

浙公网安备 33010602011771号