feat:优化项目信息

This commit is contained in:
henry
2022-03-05 15:31:22 +08:00
parent dcb5948e91
commit 4dc8deaadb
27 changed files with 401 additions and 138 deletions

View File

@ -1,6 +1,7 @@
package utils
import (
"math"
"reflect"
"testing"
)
@ -19,13 +20,14 @@ func TestArrayFlip(t *testing.T) {
//d := a & b & c
//t.Log(d)
a := make([]int, 5)
t.Log(a)
t.Log(a[4])
a = append(a, []int{1, 2, 3, 4, 5, 6, 7, 8, 9}...)
t.Log(a)
t.Log(len(a))
t.Log(cap(a))
//a := make([]int, 5)
//t.Log(a)
//t.Log(a[4])
//a = append(a, []int{1, 2, 3, 4, 5, 6, 7, 8, 9}...)
//t.Log(a)
//t.Log(len(a))
//t.Log(cap(a))
t.Log(math.Sqrt(4))
}
func TestArrayStrings(t *testing.T) {