标签:class iot import style main code span 位移 fun
package main import ( "fmt" ) const ( B float64 = 1 << (iota * 10) KB MB GB ) func main() { fmt.Println(B) fmt.Println(KB) fmt.Println(MB) fmt.Println(GB) }
1
1024
1.048576e+06
1.073741824e+09
标签:class iot import style main code span 位移 fun
原文地址:http://www.cnblogs.com/Erick-L/p/7763918.html