常量
const Pi = 3.14159var n int
f(n + 5) // 无类型的数字型常量 “5” 它的类型在这里变成了 intconst Ln2= 0.693147180559945309417232121458\
176568075500134360255254120680009
const Log2E= 1/Ln2 // this is a precise reciprocal
const Billion = 1e9 // float constant
const hardEight = (1 << 100) >> 97链接
Last updated