This commit is contained in:
krahets
2023-11-26 02:06:39 +08:00
parent 5ae2d5e925
commit e02c37e16b
11 changed files with 112 additions and 25 deletions

View File

@ -69,7 +69,7 @@ comments: true
```go title="list_test.go"
/* 初始化列表 */
// 无初始值
nums1 := []int
nums1 := []int{}
// 有初始值
nums := []int{1, 3, 2, 5, 4}
```