数据类型
- bool:True or False
- int vs. float
- complex 复数好像暂时还没有用到,就姑且跳过
关键字
- 25个关键字或保留字
break default func interface select case defer go map struct chan else goto package switch const fallthrough if range type continue for import return var - 36 个预定义标识符
append bool byte cap close complex complex64 complex128 uint16 copy false float32 float64 imag int int8 int16 uint32 int32 int64 iota len make new nil panic uint64 print println real recover string true uint uint8 uintptr
标识符
标识符用来命名变量、类型等程序实体。一个标识符实际上就是一个或是多个字母(A~ Z和a~ z)数字(0~9)、下划线“_”组成的序列,但是第一个字符必须是字母或下划线而不能是数字