标签:
package main import( "fmt" ) const( B float64 = 1 <<(iota * 10) KB MB GB TB PB EB ZB YB ) func main() { fmt.Println(B) fmt.Println(KB) fmt.Println(MB) fmt.Println(GB) fmt.Println(TB) fmt.Println(PB) fmt.Println(EB) fmt.Println(ZB) fmt.Println(YB) }
标签:
原文地址:http://www.cnblogs.com/Yellow0-0River/p/5853662.html