摘要: package main import ( "fmt" "math") func main() { /* math包: */ i := -100 fmt.Println(math.Abs(float64(i))) //绝对值 fmt.Println(math.Ceil(5.0)) //向上取整 fm 阅读全文
posted @ 2019-04-03 23:05 liubiaos 阅读(114) 评论(0) 推荐(0) 编辑