learn.md 423 字节
Newer Older
F
feilong 已提交
1 2
# 代码块

F
feilong 已提交
3
以下哪个代码块语法不对?
F
feilong 已提交
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

## 答案

```bash
行内代码块 ```hello```
```

## 选项

### A

```bash
行内代码块 `hello`
```

### B

````bash
F
fix bug  
feilong 已提交
22
```diff
F
feilong 已提交
23 24 25
var foo = 'bar';
+ var x = 200;
* var x = 100;
F
fix bug  
feilong 已提交
26
```
F
fix bug  
feilong 已提交
27
````
F
feilong 已提交
28 29 30 31

### C

````bash
F
fix bug  
feilong 已提交
32
```python
F
feilong 已提交
33 34 35 36 37 38 39 40
def fibo(max):
    n, a, b = 0, 0, 1
    while n < max:
        yield b
        a, b = b, a + b
        n = n + 1  
for n in fibo(10):
    print (n)
F
fix bug  
feilong 已提交
41
```
F
fix bug  
feilong 已提交
42
````