chore: Syntax Highlighting

This commit is contained in:
camera-2018
2023-08-15 01:03:42 +08:00
parent 9351ddc524
commit 4ce9a285d8
9 changed files with 48 additions and 43 deletions

View File

@@ -99,15 +99,21 @@ cs61a 绝对是一个挑战,但是我们都希望你学习并且成功,所
要使用 Ok 来运行指定函数的 doctests请运行以下命令
```python3 ok -q <specified function> #会和你要补充的代码一起给出```
```bash
python3 ok -q <specified function> #会和你要补充的代码一起给出
```
默认情况下,只有没有通过的测试才会出现。你可以使用-v 选项来显示所有的测试,包括你已经通过的测试
```python3 ok -v```
```bash
python3 ok -v
```
有时我们会看到类似这样的 ok 指令
```python3 ok -q control -u```
```bash
python3 ok -q control -u
```
在终端中输入后,需要按照要求回答问题,有些时候会做为某些函数测试的前置条件