1.常量特点
1).常量声明必须显示赋值,不能用变量或者函数返回值赋值,否则报错
2).常量不能修改
3).常量使用const修饰
4).常量只能修饰bool、数值类型(int,float系列)、string 类型
5).语法: const identifier [type] = value
2.合并写法
1).常量声明必须显示赋值,不能用变量或者函数返回值赋值,否则报错
2).常量不能修改
3).常量使用const修饰
4).常量只能修饰bool、数值类型(int,float系列)、string 类型
5).语法: const identifier [type] = value