摘要:
package main import ( "fmt" "math" ) //常量 func cons(){ const a,b= 3,4 //常量的数字在不明确指定类型的情况下,即可以作为int使用,也可以作为float32/float64使用 var c int c = int(math.Sqrt(a*a+b*b)) //不需要转float6... 阅读全文
posted @ 2019-02-18 10:02
方诚
阅读(117)
评论(0)
推荐(0)