mirror of
https://github.com/krahets/hello-algo.git
synced 2025-01-23 22:40:25 +08:00
Update data_and_memory.md
This commit is contained in:
parent
a4161b5fa2
commit
78c2b94422
@ -74,9 +74,9 @@ comments: true
|
|||||||
=== "Go"
|
=== "Go"
|
||||||
|
|
||||||
```go title=""
|
```go title=""
|
||||||
|
// 使用多种「基本数据类型」来初始化「数组」
|
||||||
var numbers = [5]int{}
|
var numbers = [5]int{}
|
||||||
var decimals = [5]float64{}
|
var decimals = [5]float64{}
|
||||||
// go 里没有char ,但有 rune/byte 用以代替 char
|
|
||||||
var characters = [5]byte{}
|
var characters = [5]byte{}
|
||||||
var booleans = [5]bool{}
|
var booleans = [5]bool{}
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user