✨Feat: 数学库调用
This commit is contained in:
@@ -2,10 +2,12 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"math"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
fmt.Println("Hello World")
|
fmt.Println("Hello World")
|
||||||
fmt.Println("My favorite number is", rand.Intn(100))
|
fmt.Println("My favorite number is", rand.Intn(100))
|
||||||
|
fmt.Println("运算 根号2,结果为 ", math.Sqrt(2))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user