import{_ as s,c as i,o as a,a4 as t}from"./chunks/framework.DtvhUNIn.js";const y=JSON.parse('{"title":"阶段零:Python 解释器","description":"","frontmatter":{},"headers":[],"relativePath":"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.6.4.0阶段零:Python解释器.md","filePath":"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.6.4.0阶段零:Python解释器.md"}'),n={name:"技术资源汇总(杭电支持版)/3.编程思维体系构建/3.6.4.0阶段零:Python解释器.md"},p=t(`

阶段零:Python 解释器

😍 可参考资料

官方文档

菜鸟教程

你可以在终端与解释器进行交互

在终端中输入 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 退出交互

🤔 同学们可能已经发现 python 这门编程语言的神奇之处了

在这里留一个思考题

为什么 python 可以做出不需要任何语句的神奇操作呢?

别的语言可以这样吗?

`,15),e=[p];function h(l,k,o,d,c,g){return a(),i("div",null,e)}const C=s(n,[["render",h]]);export{y as __pageData,C as default};