commit cdabdd897bd2210b2f8a4a4f15299989377adf0e Author: 张俊能 <962124368@qq.com> Date: Sun Jun 7 15:44:37 2026 +0800 init: 初始化仓库,同步头歌远程所有文件 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a8b0d1d --- /dev/null +++ b/.gitignore @@ -0,0 +1,35 @@ +# ---> Android +# Gradle files +.gradle/ +build/ + +# Local configuration file (sdk path, etc) +local.properties + +# Log/OS Files +*.log + +# Android Studio generated files and folders +captures/ +.externalNativeBuild/ +.cxx/ +*.apk +output.json + +# IntelliJ +*.iml +.idea/ +misc.xml +deploymentTargetDropDown.xml +render.experimental.xml + +# Keystore files +*.jks +*.keystore + +# Google Services (e.g. APIs or Firebase) +google-services.json + +# Android Profiling +*.hprof + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..383e7b9 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 1995-1999 The Apache Group. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + +3. All advertising materials mentioning features or use of this software must display the following acknowledgment: "This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/)." + +4. The names "Apache" and "Apache Software Foundation" must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact apache@apache.org. + +5. Products derived from this software may not be called "Apache" nor may "Apache" appear in their name, without prior written permission of the Apache Group. + +6. Redistributions of any form whatsoever must retain the following acknowledgment: +"This product includes software developed by the Apache Group for use in the Apache HTTP server project (http://www.apache.org/)." + +THIS SOFTWARE IS PROVIDED BY THE APACHE GROUP ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE APACHE GROUP OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + This software consists of voluntary contributions made by many individuals on behalf of the Apache Group and was originally based on public domain software written at the National Center for Supercomputing Applications, University of Illinois, Urbana-Champaign. For more information on the Apache Group and the Apache HTTP server project, please see . diff --git a/README.md b/README.md new file mode 100644 index 0000000..96af8af --- /dev/null +++ b/README.md @@ -0,0 +1,42 @@ +# 网络工程专业学期实验仓库 +> 本仓库基于Git版本控制,用于规范管理2025-2026学年第二学期 网络工程专业 课程实验的所有内容,包含源代码、实验报告、测试用例等。 + +--- + +## 🎯 项目目标 (What) +1. **系统化管理实验内容**:统一存放本学期所有课程实验的源代码、实验报告、测试脚本,避免文件混乱 +2. **规范版本控制流程**:通过Git记录每一次修改,实现实验内容的可追溯、可回溯、可复现 +3. **符合课程作业要求**:完成头歌分组作业的项目搭建,满足目录结构、文档规范等要求 +4. **养成良好开发习惯**:遵循行业标准的项目结构与文档规范,为后续专业学习和实习做准备 + +--- + +## 💡 设计思路 (Why) +本项目采用业界通用的开源项目标准目录结构,设计思路如下: +1. **目录分离,职责清晰** + - `/src`:仅存放实验源代码,实现代码与文档的完全分离,便于维护 + - `/docs`:仅存放实验报告、项目文档,方便老师查阅和自己复习 + - `/tests`:仅存放测试脚本和测试数据,保证代码的可验证性 +2. **README.md作为项目入口** + - 作为仓库的「门面」,提供项目全貌说明,让阅读者快速了解项目用途、结构和使用方法 + - 包含项目目标、设计思路、实现方式、版本历史等核心内容,完全满足课程作业要求 +3. **遵循Git标准流程** + - 采用「本地开发 → 暂存 → 提交 → 推送」的标准Git流程,保证版本管理的规范性 + +--- + +## 🛠️ 实现方式 (How) +### 1. 技术栈与工具 +- 版本控制工具:Git +- 远程仓库平台:头歌实践教学平台 +- 文档编写:Markdown语法 +- 代码编辑器:Visual Studio Code / 头歌在线编辑器 + +### 2. 目录结构说明 +```text +项目根目录/ +├── src/ # 源代码目录:存放各实验的核心代码(如C/Java/Python/网络编程代码等) +├── docs/ # 文档目录:存放实验报告(report1.md等)、项目设计文档、使用手册 +├── tests/ # 测试目录:存放测试脚本、测试数据、用例验证文件 +└── README.md # 项目说明文件:本文档,提供项目完整说明 + diff --git a/docs/E_/NetworkEng_Experiment/docs b/docs/E_/NetworkEng_Experiment/docs new file mode 100644 index 0000000..2a6f14d --- /dev/null +++ b/docs/E_/NetworkEng_Experiment/docs @@ -0,0 +1,125 @@ +# 实验一:工欲善其事——开发环境搭建与版本控制入门 + +文档版本历史 + +| 版本 | 日期 | 修改人 | 修改内容 | +| :--- | :--------- | :------- | :----------------------- | +| V1.0 | 2024-xx-xx | 张俊能 | 初始版本创建 | +| V1.1 | 2024-xx-xx | 张俊能 | 增加视频转播比分显示模块 | +| V1.2 | 2024-xx-xx | 张俊能 | 增加赛程安排功能模块 | + +## 实验信息 +- **实验学时**:2学时 +- **实验地点**:宿舍1C-208 +- **合作者**:无 + +## 实验目的 +- [ ] 掌握VSCode的安装及必要插件配置 +- [ ] 掌握Git的基本操作(init, clone, add, commit, push, pull) +- [ ] 熟悉Markdown语法,能够编写结构化的文档 + +## 实验环境 +- **操作系统**:Windows 11 +- **开发工具**:Visual Studio Code +- **版本控制**:Git (v2.53.0) +- **远程仓库**:Gitee +- **VSCode插件列表**: + - Markdown All in One + - Draw.io Integration + - GitLens + - 其他:Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code + +## 实验内容与步骤 + +### VSCode环境配置 +1. 安装VSCode并配置插件(截图展示插件列表): +![alt text](image.png) + +2. 配置VSCode设置(如字体大小、自动保存等): +![alt text](image-1.png) + +// 主要配置项说明 + +1. 设置"editor.fontSize": 14 +2. 开启"files.autoSave": "afterDelay" + +### Git仓库创建与克隆 +1. 远程仓库创建(截图展示远程仓库页面): +![alt text](image-2.png) + +仓库地址:https://bdgit.educoder.net/piuplj8o5/git.git + +1. 本地克隆与配置: + +克隆仓库( 命令及截图展示) +![alt text](image-3.png) + +配置用户信息( 命令及截图展示) +![alt text](image-4.png) + + + + +### Git提交操作 + +1. 查看状态与添加文件: + + bash + + ``` + git status + git add . + git commit -m "Initial commit: 添加实验一报告模板" + ``` + + + +2. 提交记录截图: + + https://images/experiment1/git-commit.png + +3. 推送到远程仓库: + + bash + + ``` + git push origin main + ``` + + + +## 实验结果与分析 + +### Git提交日志 + +bash + +``` +$ git log --oneline + 粘贴命令执行结果 +``` + + + +### 远程仓库验证 + +- 登录远程仓库,确认文件已成功推送 + +- 截图验证: + + https://images/experiment1/remote-files.png + +## 遇到的问题及解决方法 + +| 问题描述 | 解决方法 | +| :----------------------------- | :----------------------------------------------------- | +| git push时提示权限denied | 配置SSH密钥,使用`ssh-keygen`生成并添加到远程仓库 | +| VSCode中Markdown预览不显示图片 | 检查图片路径,使用相对路径如`images/实验名/图片名.png` | + +## 实验总结 + +- 本次实验掌握了VSCode+Git+Markdown的基本使用 +- 学会了Git 仓库初始化、提交、推送等完整版本控制流程 +- 不足之处:对 Git 分支管理、凭据缓存的原理还需要深入学习 + +## 实验参考资料 \ No newline at end of file diff --git a/docs/image-1.png b/docs/image-1.png new file mode 100644 index 0000000..5b6eaf7 Binary files /dev/null and b/docs/image-1.png differ diff --git a/docs/image-2.png b/docs/image-2.png new file mode 100644 index 0000000..5a84daa Binary files /dev/null and b/docs/image-2.png differ diff --git a/docs/image-3.png b/docs/image-3.png new file mode 100644 index 0000000..a1d7d1e Binary files /dev/null and b/docs/image-3.png differ diff --git a/docs/image-4.png b/docs/image-4.png new file mode 100644 index 0000000..a1d7d1e Binary files /dev/null and b/docs/image-4.png differ diff --git a/docs/image.png b/docs/image.png new file mode 100644 index 0000000..b971445 Binary files /dev/null and b/docs/image.png differ diff --git a/docs/report1.md b/docs/report1.md new file mode 100644 index 0000000..2a6f14d --- /dev/null +++ b/docs/report1.md @@ -0,0 +1,125 @@ +# 实验一:工欲善其事——开发环境搭建与版本控制入门 + +文档版本历史 + +| 版本 | 日期 | 修改人 | 修改内容 | +| :--- | :--------- | :------- | :----------------------- | +| V1.0 | 2024-xx-xx | 张俊能 | 初始版本创建 | +| V1.1 | 2024-xx-xx | 张俊能 | 增加视频转播比分显示模块 | +| V1.2 | 2024-xx-xx | 张俊能 | 增加赛程安排功能模块 | + +## 实验信息 +- **实验学时**:2学时 +- **实验地点**:宿舍1C-208 +- **合作者**:无 + +## 实验目的 +- [ ] 掌握VSCode的安装及必要插件配置 +- [ ] 掌握Git的基本操作(init, clone, add, commit, push, pull) +- [ ] 熟悉Markdown语法,能够编写结构化的文档 + +## 实验环境 +- **操作系统**:Windows 11 +- **开发工具**:Visual Studio Code +- **版本控制**:Git (v2.53.0) +- **远程仓库**:Gitee +- **VSCode插件列表**: + - Markdown All in One + - Draw.io Integration + - GitLens + - 其他:Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code + +## 实验内容与步骤 + +### VSCode环境配置 +1. 安装VSCode并配置插件(截图展示插件列表): +![alt text](image.png) + +2. 配置VSCode设置(如字体大小、自动保存等): +![alt text](image-1.png) + +// 主要配置项说明 + +1. 设置"editor.fontSize": 14 +2. 开启"files.autoSave": "afterDelay" + +### Git仓库创建与克隆 +1. 远程仓库创建(截图展示远程仓库页面): +![alt text](image-2.png) + +仓库地址:https://bdgit.educoder.net/piuplj8o5/git.git + +1. 本地克隆与配置: + +克隆仓库( 命令及截图展示) +![alt text](image-3.png) + +配置用户信息( 命令及截图展示) +![alt text](image-4.png) + + + + +### Git提交操作 + +1. 查看状态与添加文件: + + bash + + ``` + git status + git add . + git commit -m "Initial commit: 添加实验一报告模板" + ``` + + + +2. 提交记录截图: + + https://images/experiment1/git-commit.png + +3. 推送到远程仓库: + + bash + + ``` + git push origin main + ``` + + + +## 实验结果与分析 + +### Git提交日志 + +bash + +``` +$ git log --oneline + 粘贴命令执行结果 +``` + + + +### 远程仓库验证 + +- 登录远程仓库,确认文件已成功推送 + +- 截图验证: + + https://images/experiment1/remote-files.png + +## 遇到的问题及解决方法 + +| 问题描述 | 解决方法 | +| :----------------------------- | :----------------------------------------------------- | +| git push时提示权限denied | 配置SSH密钥,使用`ssh-keygen`生成并添加到远程仓库 | +| VSCode中Markdown预览不显示图片 | 检查图片路径,使用相对路径如`images/实验名/图片名.png` | + +## 实验总结 + +- 本次实验掌握了VSCode+Git+Markdown的基本使用 +- 学会了Git 仓库初始化、提交、推送等完整版本控制流程 +- 不足之处:对 Git 分支管理、凭据缓存的原理还需要深入学习 + +## 实验参考资料 \ No newline at end of file