主页
Go
Go 多变量声明
demo_variable_declaration8
运行 ❯
×
更改方向
保存代码
更改主题
package main import ("fmt") func main() { var ( a int b int = 1 c string = "hello" ) fmt.Println(a) fmt.Println(b) fmt.Println(c) }
0 1 hello