Files
fzu-product/3.编程思维体系构建/3.6.4.0阶段零:Python解释器.md
FallenYing f501a6b993 update
many, many chore
2023-07-28 09:30:17 +08:00

62 lines
860 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 阶段零Python 解释器
::: warning 😍 可参考资料
[官方文档](https://wiki.python.org/moin/BeginnersGuide)
[菜鸟教程](https://www.runoob.com/python3/python3-interpreter.html)
:::
你可以在终端与解释器进行交互
在终端中输入 python 即可进入解释器
解释器可以进行简单的表达式和语句操作
你可以自己把玩一下
```python
>>> 1 + 2
3
```
```python
>>> 3 - 2
1
```
```python
>>> 5 * 6
30
```
```python
>>> 7 / 4
1.75
```
```python
>>> 7 // 4
1
```
```python
>>> 7 % 4
3
```
```python
>>> 4 ** 3
64
```
同时可以输入 `exit``()` 或按 Ctrl+D 退出交互
:::: warning 🤔 同学们可能已经发现 python 这门编程语言的神奇之处了
在这里留一个思考题
为什么 python 可以做出不需要任何语句的神奇操作呢?
别的语言可以这样吗?