摘要:
Here is how you would define and use a calculate_length function that has a reference to an object as a parameter instead of taking ownership of the v 阅读全文
摘要:
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... 阅读全文