✨Feat: 数学库调用

This commit is contained in:
2025-12-29 15:54:47 +08:00
parent 64b955da9d
commit b22fab4459
+2
View File
@@ -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))
} }