Python项目结构学习 创建并激活虚拟环境: python -m venv venv # Windows: venv\Scripts\activate # macOS/Linux: source venv/bin/activate 安装依赖库: pip install -r requirements.txt