yar999
Go语言圣经

Updated 2 years ago

yzx-fish (@yzx-fish) started discussion #48

3 months ago · 0 comments

Open

var声明定义了两个string类型的变量s和sep。变量会在声明时直接初始化。如果变量没有显式初始化,则被隐式地赋予其类型的零值(zero value),数值类型是0,字符串类型是空字符串""。这个例子里,声明把s和sep隐式地初始化成空字符串。第2章再来详细地讲解变量和声明。

命令行参数 (Edit this file)

变量未初始化, 则为0

No description provided.

No comments on this discussion.


to join this conversation on GitBook. Already have an account? Sign in to comment
Notifications

You’re not receiving notifications from this thread.


1 participant