學生成績管理系統帶8000字文檔學生選課管理系統java項目javaweb項目ssm項目jsp項目java課程設計java畢業設計

文章目錄

  • 學生選課成績管理系統
    • 一、項目演示
    • 二、項目介紹
    • 三、8500字項目文檔
    • 四、部分功能截圖
    • 五、部分代碼展示
    • 六、底部獲取項目源碼帶8500字文檔(9.9¥帶走)

學生選課成績管理系統

一、項目演示

選課成績管理系統

二、項目介紹

語言: Java 數據庫:MySQL
技術棧 : Spring 、Spring MVC 、Mybatis、jsp

系統角色:管理員、教師、用戶

1、管理員:登錄、課程管理(搜索課程、添加課程、修改課程、刪除課程)、學生管理(搜索學生、添加學生、修改學生、刪除學生)、教師管理(搜索教師、添加教師、修改教師、刪除教師)、賬號密碼重置、修改密碼

2、教師:登錄、我的課程(搜索課程、成績評分)、修改密碼

3、學生:所有課程、已選課程、已修課程、修改密碼

三、8500字項目文檔

在這里插入圖片描述

四、部分功能截圖

在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述
在這里插入圖片描述

五、部分代碼展示

package com.system.controller;import com.system.exception.CustomException;
import com.system.po.*;
import com.system.service.*;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;import javax.annotation.Resource;
import java.util.List;@Controller
@RequestMapping("/admin")
public class AdminController {@Resource(name = "studentServiceImpl")private StudentService studentService;@Resource(name = "teacherServiceImpl")private TeacherService teacherService;@Resource(name = "courseServiceImpl")private CourseService courseService;@Resource(name = "collegeServiceImpl")private CollegeService collegeService;@Resource(name = "userloginServiceImpl")private UserloginService userloginService;/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<學生操作>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*///  學生信息顯示@RequestMapping("/showStudent")public String showStudent(Model model, Integer page) throws Exception {List<StudentCustom> list = null;//頁碼對象PagingVO pagingVO = new PagingVO();//設置總頁數pagingVO.setTotalCount(studentService.getCountStudent());if (page == null || page == 0) {pagingVO.setToPageNo(1);list = studentService.findByPaging(1);} else {pagingVO.setToPageNo(page);list = studentService.findByPaging(page);}model.addAttribute("studentList", list);model.addAttribute("pagingVO", pagingVO);return "admin/showStudent";}//  添加學生信息頁面顯示@RequestMapping(value = "/addStudent", method = {RequestMethod.GET})public String addStudentUI(Model model) throws Exception {List<College> list = collegeService.finAll();model.addAttribute("collegeList", list);return "admin/addStudent";}// 添加學生信息操作@RequestMapping(value = "/addStudent", method = {RequestMethod.POST})public String addStudent(StudentCustom studentCustom, Model model) throws Exception {Boolean result = studentService.save(studentCustom);if (!result) {model.addAttribute("message", "學號重復");return "error";}//添加成功后,也添加到登錄表Userlogin userlogin = new Userlogin();userlogin.setUsername(studentCustom.getUserid().toString());userlogin.setPassword("123");userlogin.setRole(2);userloginService.save(userlogin);//重定向return "redirect:/admin/showStudent";}// 修改學生信息頁面顯示@RequestMapping(value = "/editStudent", method = {RequestMethod.GET})public String editStudentUI(Integer id, Model model) throws Exception {if (id == null) {//加入沒有帶學生id就進來的話就返回學生顯示頁面return "redirect:/admin/showStudent";}StudentCustom studentCustom = studentService.findById(id);if (studentCustom == null) {throw new CustomException("未找到該名學生");}List<College> list = collegeService.finAll();model.addAttribute("collegeList", list);model.addAttribute("student", studentCustom);return "admin/editStudent";}// 修改學生信息處理@RequestMapping(value = "/editStudent", method = {RequestMethod.POST})public String editStudent(StudentCustom studentCustom) throws Exception {studentService.updataById(studentCustom.getUserid(), studentCustom);//重定向return "redirect:/admin/showStudent";}// 刪除學生@RequestMapping(value = "/removeStudent", method = {RequestMethod.GET} )private String removeStudent(Integer id) throws Exception {if (id == null) {//加入沒有帶學生id就進來的話就返回學生顯示頁面return "admin/showStudent";}studentService.removeById(id);userloginService.removeByName(id.toString());return "redirect:/admin/showStudent";}// 搜索學生@RequestMapping(value = "selectStudent", method = {RequestMethod.POST})private String selectStudent(String findByName, Model model) throws Exception {List<StudentCustom> list = studentService.findByName(findByName);model.addAttribute("studentList", list);return "admin/showStudent";}/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<教師操作>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/// 教師頁面顯示@RequestMapping("/showTeacher")public String showTeacher(Model model, Integer page) throws Exception {List<TeacherCustom> list = null;//頁碼對象PagingVO pagingVO = new PagingVO();//設置總頁數pagingVO.setTotalCount(teacherService.getCountTeacher());if (page == null || page == 0) {pagingVO.setToPageNo(1);list = teacherService.findByPaging(1);} else {pagingVO.setToPageNo(page);list = teacherService.findByPaging(page);}model.addAttribute("teacherList", list);model.addAttribute("pagingVO", pagingVO);return "admin/showTeacher";}// 添加教師信息@RequestMapping(value = "/addTeacher", method = {RequestMethod.GET})public String addTeacherUI(Model model) throws Exception {List<College> list = collegeService.finAll();model.addAttribute("collegeList", list);return "admin/addTeacher";}// 添加教師信息處理@RequestMapping(value = "/addTeacher", method = {RequestMethod.POST})public String addTeacher(TeacherCustom teacherCustom, Model model) throws Exception {Boolean result = teacherService.save(teacherCustom);if (!result) {model.addAttribute("message", "工號重復");return "error";}//添加成功后,也添加到登錄表Userlogin userlogin = new Userlogin();userlogin.setUsername(teacherCustom.getUserid().toString());userlogin.setPassword("123");userlogin.setRole(1);userloginService.save(userlogin);//重定向return "redirect:/admin/showTeacher";}// 修改教師信息頁面顯示@RequestMapping(value = "/editTeacher", method = {RequestMethod.GET})public String editTeacherUI(Integer id, Model model) throws Exception {if (id == null) {return "redirect:/admin/showTeacher";}TeacherCustom teacherCustom = teacherService.findById(id);if (teacherCustom == null) {throw new CustomException("未找到該名學生");}List<College> list = collegeService.finAll();model.addAttribute("collegeList", list);model.addAttribute("teacher", teacherCustom);return "admin/editTeacher";}// 修改教師信息頁面處理@RequestMapping(value = "/editTeacher", method = {RequestMethod.POST})public String editTeacher(TeacherCustom teacherCustom) throws Exception {teacherService.updateById(teacherCustom.getUserid(), teacherCustom);//重定向return "redirect:/admin/showTeacher";}//刪除教師@RequestMapping("/removeTeacher")public String removeTeacher(Integer id) throws Exception {if (id == null) {//加入沒有帶教師id就進來的話就返回教師顯示頁面return "admin/showTeacher";}teacherService.removeById(id);userloginService.removeByName(id.toString());return "redirect:/admin/showTeacher";}//搜索教師@RequestMapping(value = "selectTeacher", method = {RequestMethod.POST})private String selectTeacher(String findByName, Model model) throws Exception {List<TeacherCustom> list = teacherService.findByName(findByName);model.addAttribute("teacherList", list);return "admin/showTeacher";}/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<課程操作>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/// 課程信息顯示@RequestMapping("/showCourse")public String showCourse(Model model, Integer page) throws Exception {List<CourseCustom> list = null;//頁碼對象PagingVO pagingVO = new PagingVO();//設置總頁數pagingVO.setTotalCount(courseService.getCountCouse());if (page == null || page == 0) {pagingVO.setToPageNo(1);list = courseService.findByPaging(1);} else {pagingVO.setToPageNo(page);list = courseService.findByPaging(page);}model.addAttribute("courseList", list);model.addAttribute("pagingVO", pagingVO);return "admin/showCourse";}//添加課程@RequestMapping(value = "/addCourse", method = {RequestMethod.GET})public String addCourseUI(Model model) throws Exception {List<TeacherCustom> list = teacherService.findAll();List<College> collegeList = collegeService.finAll();model.addAttribute("collegeList", collegeList);model.addAttribute("teacherList", list);return "admin/addCourse";}// 添加課程信息處理@RequestMapping(value = "/addCourse", method = {RequestMethod.POST})public String addCourse(CourseCustom courseCustom, Model model) throws Exception {Boolean result = courseService.save(courseCustom);if (!result) {model.addAttribute("message", "課程號重復");return "error";}//重定向return "redirect:/admin/showCourse";}// 修改教師信息頁面顯示@RequestMapping(value = "/editCourse", method = {RequestMethod.GET})public String editCourseUI(Integer id, Model model) throws Exception {if (id == null) {return "redirect:/admin/showCourse";}CourseCustom courseCustom = courseService.findById(id);if (courseCustom == null) {throw new CustomException("未找到該課程");}List<TeacherCustom> list = teacherService.findAll();List<College> collegeList = collegeService.finAll();model.addAttribute("teacherList", list);model.addAttribute("collegeList", collegeList);model.addAttribute("course", courseCustom);return "admin/editCourse";}// 修改教師信息頁面處理@RequestMapping(value = "/editCourse", method = {RequestMethod.POST})public String editCourse(CourseCustom courseCustom) throws Exception {courseService.upadteById(courseCustom.getCourseid(), courseCustom);//重定向return "redirect:/admin/showCourse";}// 刪除課程信息@RequestMapping("/removeCourse")public String removeCourse(Integer id) throws Exception {if (id == null) {//加入沒有帶教師id就進來的話就返回教師顯示頁面return "admin/showCourse";}courseService.removeById(id);return "redirect:/admin/showCourse";}//搜索課程@RequestMapping(value = "selectCourse", method = {RequestMethod.POST})private String selectCourse(String findByName, Model model) throws Exception {List<CourseCustom> list = courseService.findByName(findByName);model.addAttribute("courseList", list);return "admin/showCourse";}/*<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<其他操作>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>*/// 普通用戶賬號密碼重置@RequestMapping("/userPasswordRest")public String userPasswordRestUI() throws Exception {return "admin/userPasswordRest";}// 普通用戶賬號密碼重置處理@RequestMapping(value = "/userPasswordRest", method = {RequestMethod.POST})public String userPasswordRest(Userlogin userlogin) throws Exception {Userlogin u = userloginService.findByName(userlogin.getUsername());if (u != null) {if (u.getRole() == 0) {throw new CustomException("該賬戶為管理員賬戶,沒法修改");}u.setPassword(userlogin.getPassword());userloginService.updateByName(userlogin.getUsername(), u);} else {throw new CustomException("沒找到該用戶");}return "admin/userPasswordRest";}// 本賬戶密碼重置@RequestMapping("/passwordRest")public String passwordRestUI() throws Exception {return "admin/passwordRest";}}
package com.system.controller;import com.system.exception.CustomException;
import com.system.po.*;
import com.system.service.CourseService;
import com.system.service.SelectedCourseService;
import com.system.service.StudentService;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;import javax.annotation.Resource;
import java.util.List;/*** Created by Jacey on 2017/7/5.*/
@Controller
@RequestMapping(value = "/student")
public class StudentController {@Resource(name = "courseServiceImpl")private CourseService courseService;@Resource(name = "studentServiceImpl")private StudentService studentService;@Resource(name = "selectedCourseServiceImpl")private SelectedCourseService selectedCourseService;@RequestMapping(value = "/showCourse")public String stuCourseShow(Model model, Integer page) throws Exception {List<CourseCustom> list = null;//頁碼對象PagingVO pagingVO = new PagingVO();//設置總頁數pagingVO.setTotalCount(courseService.getCountCouse());if (page == null || page == 0) {pagingVO.setToPageNo(1);list = courseService.findByPaging(1);} else {pagingVO.setToPageNo(page);list = courseService.findByPaging(page);}model.addAttribute("courseList", list);model.addAttribute("pagingVO", pagingVO);return "student/showCourse";}// 選課操作@RequestMapping(value = "/stuSelectedCourse")public String stuSelectedCourse(int id) throws Exception {//獲取當前用戶名Subject subject = SecurityUtils.getSubject();String username = (String) subject.getPrincipal();SelectedCourseCustom selectedCourseCustom = new SelectedCourseCustom();selectedCourseCustom.setCourseid(id);selectedCourseCustom.setStudentid(Integer.parseInt(username));SelectedCourseCustom s = selectedCourseService.findOne(selectedCourseCustom);if (s == null) {selectedCourseService.save(selectedCourseCustom);} else {throw new CustomException("該門課程你已經選了,不能再選");}return "redirect:/student/selectedCourse";}// 退課操作@RequestMapping(value = "/outCourse")public String outCourse(int id) throws Exception {Subject subject = SecurityUtils.getSubject();String username = (String) subject.getPrincipal();SelectedCourseCustom selectedCourseCustom = new SelectedCourseCustom();selectedCourseCustom.setCourseid(id);selectedCourseCustom.setStudentid(Integer.parseInt(username));selectedCourseService.remove(selectedCourseCustom);return "redirect:/student/selectedCourse";}// 已選課程@RequestMapping(value = "/selectedCourse")public String selectedCourse(Model model) throws Exception {//獲取當前用戶名Subject subject = SecurityUtils.getSubject();StudentCustom studentCustom = studentService.findStudentAndSelectCourseListByName((String) subject.getPrincipal());List<SelectedCourseCustom> list = studentCustom.getSelectedCourseList();model.addAttribute("selectedCourseList", list);return "student/selectCourse";}// 已修課程@RequestMapping(value = "/overCourse")public String overCourse(Model model) throws Exception {//獲取當前用戶名Subject subject = SecurityUtils.getSubject();StudentCustom studentCustom = studentService.findStudentAndSelectCourseListByName((String) subject.getPrincipal());if (studentCustom==null){throw new CustomException("你還沒有修完任何一門課,請先選課學習吧!");}List<SelectedCourseCustom> list = studentCustom.getSelectedCourseList();model.addAttribute("selectedCourseList", list);return "student/overCourse";}//修改密碼@RequestMapping(value = "/passwordRest")public String passwordRest() throws Exception {return "student/passwordRest";}}
package com.system.service.impl;import com.system.exception.CustomException;
import com.system.mapper.CollegeMapper;
import com.system.mapper.CourseMapper;
import com.system.mapper.TeacherMapper;
import com.system.mapper.TeacherMapperCustom;
import com.system.po.*;
import com.system.service.TeacherService;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;import java.util.ArrayList;
import java.util.List;/*** Created by Jacey on 2017/6/29.*/
@Service
public class TeacherServiceImpl implements TeacherService {@Autowiredprivate TeacherMapper teacherMapper;@Autowiredprivate TeacherMapperCustom teacherMapperCustom;@Autowiredprivate CollegeMapper collegeMapper;@Autowiredprivate CourseMapper courseMapper;public void updateById(Integer id, TeacherCustom teacherCustom) throws Exception {teacherMapper.updateByPrimaryKey(teacherCustom);}public void removeById(Integer id) throws Exception {CourseExample courseExample = new CourseExample();CourseExample.Criteria criteria = courseExample.createCriteria();criteria.andTeacheridEqualTo(id);List<Course> list = courseMapper.selectByExample(courseExample);if (list.size() != 0) {throw new CustomException("請先刪除該名老師所教授的課程");}teacherMapper.deleteByPrimaryKey(id);}public List<TeacherCustom> findByPaging(Integer toPageNo) throws Exception {PagingVO pagingVO = new PagingVO();pagingVO.setToPageNo(toPageNo);List<TeacherCustom> list = teacherMapperCustom.findByPaging(pagingVO);return list;}public Boolean save(TeacherCustom teacherCustom) throws Exception {Teacher tea = teacherMapper.selectByPrimaryKey(teacherCustom.getUserid());if (tea == null) {teacherMapper.insert(teacherCustom);return true;}return false;}public int getCountTeacher() throws Exception {//自定義查詢對象TeacherExample teacherExample = new TeacherExample();//通過criteria構造查詢條件TeacherExample.Criteria criteria = teacherExample.createCriteria();criteria.andUseridIsNotNull();return teacherMapper.countByExample(teacherExample);}public TeacherCustom findById(Integer id) throws Exception {Teacher teacher = teacherMapper.selectByPrimaryKey(id);TeacherCustom teacherCustom = null;if (teacher != null) {teacherCustom = new TeacherCustom();BeanUtils.copyProperties(teacher, teacherCustom);}return teacherCustom;}public List<TeacherCustom> findByName(String name) throws Exception {TeacherExample teacherExample = new TeacherExample();//自定義查詢條件TeacherExample.Criteria criteria = teacherExample.createCriteria();criteria.andUsernameLike("%" + name + "%");List<Teacher> list = teacherMapper.selectByExample(teacherExample);List<TeacherCustom> teacherCustomList = null;if (list != null) {teacherCustomList = new ArrayList<TeacherCustom>();for (Teacher t : list) {TeacherCustom teacherCustom = new TeacherCustom();//類拷貝BeanUtils.copyProperties(t, teacherCustom);//獲取課程名College college = collegeMapper.selectByPrimaryKey(t.getCollegeid());teacherCustom.setcollegeName(college.getCollegename());teacherCustomList.add(teacherCustom);}}return teacherCustomList;}public List<TeacherCustom> findAll() throws Exception {TeacherExample teacherExample = new TeacherExample();TeacherExample.Criteria criteria = teacherExample.createCriteria();criteria.andUsernameIsNotNull();List<Teacher> list = teacherMapper.selectByExample(teacherExample);List<TeacherCustom> teacherCustomsList = null;if (list != null) {teacherCustomsList = new ArrayList<TeacherCustom>();for (Teacher t: list) {TeacherCustom teacherCustom = new TeacherCustom();BeanUtils.copyProperties(t, teacherCustom);teacherCustomsList.add(teacherCustom);}}return teacherCustomsList;}
}

六、底部獲取項目源碼帶8500字文檔(9.9¥帶走)

有問題,或者需要協助調試運行項目的也可以

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/diannao/36345.shtml
繁體地址,請注明出處:http://hk.pswp.cn/diannao/36345.shtml
英文地址,請注明出處:http://en.pswp.cn/diannao/36345.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

php數據結構之鏈表

本文由 ChatMoney團隊出品 鏈表的基本概念 鏈表&#xff08;Linked List&#xff09;是一種常見的數據結構&#xff0c;它由一系列節點組成&#xff0c;每個節點除了存儲數據外&#xff0c;還包含指向下一個節點的指針。與數組相比&#xff0c;鏈表在插入和刪除操作上具有更高…

直播帶貨大模型,開啟自動賣貨的時代

Streamer-Sales是一個為直播帶貨主播量身定制的智能工具。 它能夠智能分析商品特性&#xff0c;自動創作出引人入勝的解說詞&#xff0c;從而有效增強商品的吸引力和提升銷售業績。它還具備多種交互功能&#xff0c;比如將主播的語音實時轉換為文字&#xff0c;便于與觀眾進行…

移動端 UI 風格,書寫華麗篇章

移動端 UI 風格&#xff0c;書寫華麗篇章

原創作品—醫療行業軟件界面UI、交互設計

在醫療行業大屏UI設計中&#xff0c;首要的是以用戶為中心&#xff0c;深入理解醫生、護士、管理層等用戶群體的具體需求和工作流程。大屏設計應直觀展示關鍵醫療數據、患者信息、設備狀態等&#xff0c;確保用戶能夠迅速、準確地獲取所需信息。同時&#xff0c;功能布局應合理…

12寸和8寸封裝線的差異點

12英寸&#xff08;300mm&#xff09;晶圓封裝線與8英寸&#xff08;200mm&#xff09;晶圓封裝線在多個方面存在顯著區別&#xff0c;這些區別影響了它們的生產效率、成本結構和適用技術。以下是一些主要差異&#xff1a; 1. **晶圓面積**&#xff1a; - 12英寸晶圓擁有更…

??植物大戰僵尸雜交版直裝版v2.1 安卓版:全新策略塔防體驗

《植物大戰僵尸雜交版直裝版》v2.1是由B站UP主“潛艇偉偉迷”精心制作的同人游戲&#xff0c;為策略塔防手游帶來了全新的活力。游戲中引入了眾多創新的雜交植物&#xff0c;例如結合了向日葵的陽光生成能力和豌豆射手的攻擊特性的向日葵豌豆射手&#xff0c;以及擁有寒冰豌豆射…

docker打包 arm32v7/debian 問題總結

1.架構不同 我的宿主是x86 ,但是打包的是arm架構 安裝qemu sudo apt-get install binfmt-support qemu qemu-user-static 然后使用buildx打包 docker buildx build --no-cache --platform linux/arm/v7 -t tdc_post:1.0.1 . --load 保存tar docker save -o tdc_post.tar tdc_p…

金融科技如何運用技術手段實現細顆粒度服務

隨著金融科技的快速發展&#xff0c;金融機構正在通過采用各種技術手段來提供更加細顆粒度的服務&#xff0c;以滿足客戶日益增長的個性化需求。這些技術手段不僅提高了金融服務的效率和安全性&#xff0c;還顯著提升了用戶體驗和滿意度。 一、大數據分析與人工智能&#xff08…

中國旺旺:廉頗老矣or老而彌堅?

從80后的童年吃到了20后的童年&#xff0c;什么舌尖上的產品能旺這么久&#xff1f; 相信大家都能說出他的名字——中國旺旺。 要問旺旺的第一單品是啥&#xff1f;毫無疑問是旺仔牛奶。 這也體現在財報上&#xff0c;2022財年&#xff0c;旺旺乳品、飲料品類收入雙位數下滑&…

【Sklearn馴化-回歸指標】一文搞懂機器學習中回歸算法評估指標:mae、rmse等

【Sklearn馴化-回歸指標】一文搞懂機器學習中回歸算法評估指標&#xff1a;mae、rmse等 本次修煉方法請往下查看 &#x1f308; 歡迎蒞臨我的個人主頁 &#x1f448;這里是我工作、學習、實踐 IT領域、真誠分享 踩坑集合&#xff0c;智慧小天地&#xff01; &#x1f387; 免…

動環監控系統數據可靠維護與效能實現

摘要&#xff1a;了解動環監控的功能,總結出通過分析監控系統的數據庫和系統軟件,采取措施對數據進行維護,充分利用監控系統,確保高效低耗的維護網絡。 關鍵詞&#xff1a;監控&#xff1b;數據丟失&#xff1b;備份&#xff1b;恢復&#xff1b;維護 0引言 隨著網絡信息化和…

如何提高外文文獻閱讀效率

要提高外文文獻閱讀效率&#xff0c;可以考慮以下幾點&#xff1a; 掌握基礎語言能力&#xff1a; 熟練掌握英語或其他目標語言的基礎詞匯和語法是提高閱讀效率的基礎。如果語言能力有限&#xff0c;可以通過課程、閱讀和聽力練習來增強。 選擇合適的文獻&#xff1a; 根據研…

python-docx 使用xml為docx不同的章節段落設置不同字體

本文目錄 前言一、完整代碼二、代碼詳細解析1、處理過程解釋(1) 引入庫并定義路徑(2) 創建docx的備份文件(3) 定義命名空間(4) 打開并處理.docx文件(5) 分析和組織文檔結構(6) 設置字體(7) 保存結果前言 本文主要解決的內容,就是為一個docx的不同章節段落設置不同的字體,因為…

6.二叉樹.題目3

6.二叉樹.題目3 題目17.二叉搜索樹中的眾數18.二叉樹的最近公共祖先19.二叉樹搜索樹的最近公共祖先20.二叉搜索樹中的插入操作。普通二叉樹的刪除方式 21.刪除二叉搜索樹中的節點22.修剪二叉樹23.將有序數組轉化為二叉搜索樹24.把二叉搜索樹轉化為累加樹 總結 題目 17.二叉搜索…

LLM大模型本地部署與預訓練微調

以通義千問-1_8B-Chat為例&#xff0c;按照官方教程&#xff0c;簡單介紹如何將模型進行本地CPU部署以及預訓練微調&#xff1a; 1、環境條件&#xff1a;Linux 24G內存左右 2、本地部署&#xff1a; 提前安裝好git跟git lfs&#xff0c;否則可能拉取不到模型文件&#xff0c;g…

SQL面試題練習 —— 求連續段的起始位置和結束位置

目錄 1 題目2 建表語句3 題解 題目來源&#xff1a;拼多多。 1 題目 有一張表t_id記錄了id&#xff0c;id不重復&#xff0c;但是會存在間斷&#xff0c;求出連續段的起始位置和結束位置。 樣例數據 ----- | id | ----- | 1 | | 2 | | 3 | | 5 | | 6 | | 8 | | …

【教程】DPW 325T FPGA板卡程序下載與固化全攻略

到底什么是固化&#xff1f;&#xff1f;&#xff1f; 在開發板領域&#xff0c;"固化"通常指的是將軟件或操作系統的鏡像文件燒錄&#xff08;Flash&#xff09;到開發板的存儲介質上&#xff0c;使其成為開發板啟動時加載的系統。這個過程可以確保開發板在啟動時能…

從單點到全景:視頻匯聚/安防監控EasyCVR全景視頻監控技術的演進之路

在當今日新月異的科技浪潮中&#xff0c;安防監控領域的技術發展日新月異&#xff0c;全景攝像機便是這一領域的杰出代表。它以其獨特的360度無死角監控能力&#xff0c;為各行各業提供了前所未有的安全保障&#xff0c;成為現代安防體系中的重要組成部分。 一、全景攝像機的技…

【SpringMVC】第1-7章

第1章 初始SpringMVC 1.1 學習本套教程前的知識儲備 JavaSEHTMLCSSJavaScriptVueAJAX axiosThymeleafServletMavenSpring 1.2 什么是MVC MVC架構模式相關課程&#xff0c;在老杜的JavaWeb課程中已經詳細的講解了&#xff0c;如果沒有學過的&#xff0c;可以看這個視頻&…

抖音微短劇小程序平臺:源碼搭建與廣告回傳技術詳解

抖音微短劇小程序平臺&#xff1a;源碼搭建與廣告回傳技術詳解 在數字化時代&#xff0c;短視頻已成為大眾娛樂生活的重要組成部分。抖音微短劇小程序平臺&#xff0c;作為這一趨勢的佼佼者&#xff0c;不僅為用戶提供了豐富多樣的短視頻內容&#xff0c;還為創作者和廣告主提…