Files
chunyu_project/media/learn/courses/12/chapters/67.md
T
2026-08-05 23:59:15 +08:00

48 lines
982 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 简介与环境搭建
## 学习目标
- 了解 Python 语言特点
- 掌握 Python 安装方法
- 学会使用 IDLE 和命令行
## Python 简介
Python 是一种**解释型、高级、面向对象**的编程语言,由 Guido van Rossum 于 1991 年创建。
### 为什么选择 Python?
1. **简单易学** - 语法接近自然语言
2. **应用广泛** - Web开发、数据分析、人工智能
3. **社区活跃** - 丰富的第三方库
4. **跨平台** - Windows、macOS、Linux 通用
## 安装 Python
### Windows 安装步骤
1. 访问 [python.org](https://www.python.org/)
2. 下载最新版本 Python 3.x
3. 安装时勾选 **"Add Python to PATH"**
4. 点击 Install Now
### 验证安装
打开命令行输入:
```bash
python --version
```
## 第一个 Python 程序
```python
print("Hello, World!")
print("你好,Python!")
```
## 动手练习
1. 安装 Python 环境
2. 运行 `print("Hello, World!")`
3. 尝试使用不同的 print 输出