Python
“Python” 由 Guido van Rossum 创建,以缩进定义代码块,标准库丰富。常见框架有 Django、Flask、FastAPI;在机器学习(PyTorch、TensorFlow)与运维脚本中占主导。名词 python 亦指蟒蛇,读音相同需看语境。
- “She automated deployments with a short Python script.” (她用短 Python 脚本自动化部署。)
- “The data team trains models in Python notebooks.” (数据团队用 Python notebook 训练模型。)
- “Install dependencies from requirements.txt into a virtual environment.” (在虚拟环境中从 requirements.txt 安装 Python 依赖。)
语言名来自英国喜剧团体 Monty Python,非蟒蛇;蟒蛇义 python 同源不同领域。
专有名词,无词缀。
“The Zen of Python” 强调可读与简洁;PyPI 是 Python 包索引;在软件开发语境中几乎总指语言。
- 固定搭配: “Python script” (Python 脚本), “Python package” (Python 包), “Python interpreter” (Python 解释器)
- 包管理: pip, conda
编程语境下记住“用缩进写逻辑的高级脚本语言”,与 Monty Python 梗可加深印象。
“A ten-line Python utility replaced a fragile shell pipeline the team had feared to touch.” (十行 Python 工具替换了团队不敢碰的脆弱 shell 流水线。)