特牛网址导航

Go语言编程基础 包、变量、函数(三)(完结)_big = 1 << 100 small = big >> 99-CSDN博客

网友收藏
文章浏览阅读83次。类型转化表达式T(v)将值v转为类型T。与C不同,Go在不同类型的项之间赋值时需要显示转换。package mainimport "fmt"func main() { var x, y, z= 1, 2, 3 var f float64 = 123.456 var ccc uint = 'c' x = int(ccc) y = int(f) f = float6..._big = 1 << 100 small = big >> 99