bool, string
(u)int, (u)int8, (u)int16, (u)int32, (u)int64, uintptr(指针)
byte, tune(char,32位)
float32, float64, complex64, complex128(复数,实部64位,虚部64位)
复数:
cmplx.Exp(1i*math.Pi) + 1,
cmplx.Pow(math.E, 1i*math.Pi) + 1)
c := 3 + 4i
cmplx.Abs(c)
bool, string
(u)int, (u)int8, (u)int16, (u)int32, (u)int64, uintptr(指针)
byte, tune(char,32位)
float32, float64, complex64, complex128(复数,实部64位,虚部64位)
复数:
cmplx.Exp(1i*math.Pi) + 1,
cmplx.Pow(math.E, 1i*math.Pi) + 1)
c := 3 + 4i
cmplx.Abs(c)
本文标题:Go语言学习之——内建变量类型
本文链接:https://www.haomeiwen.com/subject/ifznhftx.html
网友评论