GO01
一、Go基础
变量&&常量
1.1 数据类型
1.2 变量
1 | // 单个定义 |
1.3 常量
1 | // 单个定义 |
- c1后c2不赋值,默认与c1值相等
- iota 常量计数器,const定义时为0, 定义一个 + 1
fmt打印
2.1
fmt.Println("hello world !!!)2.2
fmt.Println("hello world !!!")2.3
fmt.Println("hello world !!!")流程控制
3.1 for循环
3.2 if else
3.3 switch
函数