提交 ecc0c6eb 编写于 作者: F feilong

改进8题+fix1

上级 af86f47e
...@@ -90,6 +90,19 @@ if __name__ == '__main__': ...@@ -90,6 +90,19 @@ if __name__ == '__main__':
i += 1 i += 1
``` ```
预期的输出结果为:
```bash
单词排行榜
--------
1. 单词:style, 词频:20
2. 单词:guide,, 词频:13
3. 单词:to, 词频:9
4. 单词:python, 词频:8
5. 单词:google, 词频:7
```
以下选项是对代码中`TODO`部分的多种实现,你能找出以下实现<span style="color:red">错误</span>的选项吗?
## template ## template
```python ```python
...@@ -158,7 +171,6 @@ This project holds the C++ Style Guide, C# Style Guide, Swift Style Guide, Objec ...@@ -158,7 +171,6 @@ This project holds the C++ Style Guide, C# Style Guide, Swift Style Guide, Objec
print(f'{i+1}. 单词:{word}, 词频:{count}') print(f'{i+1}. 单词:{word}, 词频:{count}')
i += 1 i += 1
``` ```
## 答案 ## 答案
```python ```python
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册