feat: 第三章全部

This commit is contained in:
camera-2018
2023-04-15 01:17:15 +08:00
parent 5929de5b21
commit cf44118f5c
83 changed files with 2834 additions and 0 deletions

View File

@@ -0,0 +1,81 @@
# 阶段零Python 解释器
可参考资料
[官方文档](https://wiki.python.org/moin/BeginnersGuide)
[菜鸟教程](https://www.runoob.com/python3/python3-interpreter.html)
你可以在终端与解释器进行交互
在终端中输入 python 即可进入解释器
解释器可以进行简单的表达式和语句操作
你可以自己把玩一下
```
>>> 1 + 2
```
```
3
```
```
>>> 3 - 2
```
```
1
```
```
>>> 5 * 6
```
```
30
```
```
>>> 7 / 4
```
```
1.75
```
```
>>> 7 // 4
```
```
1
```
```
>>> 7 % 4
```
```
3
```
```
>>> 4**3
```
```
64
```
同时可以输入 `exit``()` 或按 Ctrl+D 退出交互
同学们可能已经发现 python 这门编程语言的神奇之处了
在这里留一个思考题
为什么 python 可以做出不需要任何语句的神奇操作呢?
别的语言可以这样吗?