Golang - 基本数据类型

2016-11-04  本文已影响225人  莫尛莫

int,rune(注:rune 也是int, 用于字符的UTF-8代码
int8 ,int16 ,int32 ,int64
byte ,uint8 ,uint16 ,uint32 ,uint64 (注:byte 也是uint8, 表示字节数
float32 ,float64 (没有float 类型)
bool
string
complex64,complex32(复数,对应两个float32 和 两个float64)

上一篇 下一篇

猜你喜欢

热点阅读