# python-dev **Repository Path**: myonsoul/python-dev ## Basic Information - **Project Name**: python-dev - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2026-02-26 - **Last Updated**: 2026-02-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python 后台开发题目 两个Python后端开发练习题目,包含订单数据处理和题目数据接口。 ## 项目结构 ``` Python后台开发题目/ ├── app.py # Flask主应用 ├── order_processor.py # 订单数据处理模块 ├── question_service.py # 题目数据服务 ├── requirements.txt # Python依赖 ├── start.bat # Windows启动脚本 ├── start.sh # Mac/Linux启动脚本 ├── templates/ # HTML模板 │ ├── home.html # 首页 │ ├── orders.html # 订单处理页面 │ └── index.html # 题目练习页面 └── data.csv # 测试数据 ``` ## 题目1:订单数据处理 - 支持拖拽上传CSV文件 - 日期范围筛选 - 按商品分类统计销售额 - 生成JSON报告并下载 - 错误数据日志记录 **访问地址:** http://127.0.0.1:5001/orders ## 题目2:题目数据接口 - 4个教学场景:新课同步教学、高考一轮复习、高考二轮复习、高考三轮复习 - 3种题目类型:课堂例题、课堂练习题、课后分层作业 - 选择题支持单选/多选 - 提交答案并显示正确与否 **访问地址:** http://127.0.0.1:5001/questions ## 启动方式 ### Windows ```bash start.bat ``` ### Mac/Linux ```bash bash start.sh ``` 或直接运行: ```bash python app.py ``` ## API接口 ### 题目2相关 - `GET /api/scenarios` - 获取教学场景列表 - `GET /api/cards?scene={scene}` - 获取场景下的卡片 - `GET /api/questions?scene={scene}&step={step}&type={type}` - 获取题目列表 ### 题目1相关 - `POST /api/process-orders` - 处理CSV订单文件 - `GET /api/download-report` - 下载报告JSON