提交 2ed3179a 编写于 作者: 麻凡_'s avatar 麻凡_

新增第一章题目

上级 94b01300
{ {
"type": "code_options", "type": "code_options",
"author": "feilong", "author": "dengmengmian",
"source": "helloworld.md", "source": "helloworld.md",
"notebook_enable": false, "notebook_enable": false
"exercise_id": "4bc685eb97b042a196a815d97c40ff83"
} }
\ No newline at end of file
# {在此填写标题} # 编程语言的类型
{在此填写题目描述} Go 是什么类型的编程语言?
## 答案 ## 答案
{在此填写答案} 静态强类型、编译型语言
## 选项 ## 选项
### A ### A
{在此填写选项A} 强类型动态编程语言
### B ### B
{在此填写选项B} 动态类型编程语言
### C ### C
{在此填写选项C} 弱类型编程语言
{
"type": "code_options",
"author": "dengmengmian",
"source": "version.md",
"notebook_enable": false
}
\ No newline at end of file
# Go 版本的查看命令
查看 Go 版本的命令是什么?
## 答案
```go
go version
```
## 选项
### A
```go
go Version
```
### B
```go
go - Version
```
### C
```go
go -v
```
{
"type": "code_options",
"author": "dengmengmian",
"source": "idea.md",
"notebook_enable": false
}
\ No newline at end of file
# Go 编辑器的选择
以下那个编辑器是收费的?
## 答案
goland
## 选项
### A
vscode
### B
vim
### C
emacs
{
"type": "code_options",
"author": "dengmengmian",
"source": "compiler.md",
"notebook_enable": false
}
\ No newline at end of file
# 交叉编译
生成`Linux`下可运行程序,正确的交叉编译命令是:
## 答案
```bash
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build main.go
```
## 选项
### A
```bash
CGO_ENABLED=0 GOOS=mac GOARCH=amd64 go build main.go
```
### B
```bash
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build main.go
```
### C
```bash
CGO_ENABLED=0 GOOS=chrome GOARCH=amd64 go build main.go
```
{
"type": "code_options",
"author": "dengmengmian",
"source": "helloworld.md",
"notebook_enable": false
}
\ No newline at end of file
# Hello World
以下 `Hello World` 程序中,能够正确输出内容的是:
## 答案
goland
## 选项
```go
package main
func main() {
println("Hello world")
}
```
### A
```go
package main
func main() {
echo ("Hello world")
}
```
### B
```go
package main
func main() {
println("Hello world");
}
```
### C
```go
package main
func main() {
println "Hello world"
}
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册