提交 1fe07885 编写于 作者: 麻凡_'s avatar 麻凡_

新增常量和变量题目

上级 2ee8e978
{
"type": "code_options",
"author": "dengmengmian",
"source": "version.md",
"notebook_enable": false,
"exercise_id": "9d7860ed625c4fe1b3d60b7a84be1803"
"type": "code_options",
"author": "dengmengmian",
"source": "version.md",
"notebook_enable": false,
"exercise_id": "9d7860ed625c4fe1b3d60b7a84be1803"
}
\ No newline at end of file
{
"type": "code_options",
"author": "dengmengmian",
"source": "const.md",
"notebook_enable": false
}
\ No newline at end of file
# 变量
以下常量声明不正确的是:
## 答案
`var b string = "abc"`
## 选项
### A
```go
const b string = "abc"
```
### B
```go
const PI = 3.14159
```
### C
```go
const (
name = "gotribe.cn"
age = 1
country = "bejing"
)
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册