基于Java(SpringBoot)+MySQL+Vue实现的平行志愿录取系统

基于spring boot+vue实现的平行志愿录取系统

1.项目简介

这两天干上高考出成绩,有不少亲戚家的孩子今年高考,和我询问关于报志愿的问题。老家河北今年是采用所谓的平行志愿。我看了很多的资料才明白什么叫所谓的“平行志愿”。

整个流程好像很是复杂。我突发奇想,心想何不自己编写一个程序来模拟一下这个所谓的录取过程呢。

考生成绩和志愿是机密类的数据,向我们这样的平头百姓向那倒是不太可能的事情,那么就只能自己写个程序生成一份模拟的成绩和志愿数据。

成绩比较好办,因为有个参考,那就是省教育考试院放出的“一分一段成绩统计表”。这个东西提供了我们模拟成绩数据的很多信息:一是考生的人数,每个分数下的人数都写得很清楚;二是成绩的分布情况,即在不同成绩段的考生人数都十分详细的列出。

2.思路分析

高考填报志愿非常重要,关于志愿填报及院校录取规则,我们看完院校投档原理就明白了。

假如甲同学610分乙同学609分。甲报考的志愿,第一个是北邮,第二个是北林;乙同学,第一个报北林,第二个报了北京工业大学。那么问题来了,如果考生甲没有被他的第一志愿北京邮电大学提档,那么对于北京林业大学来说,会优先检索谁的志愿呢?当然是甲同学的,因为平行志愿的录取规则是分数优先,遵循志愿。那什么叫分数优先,甲乙高考分数,谁的分数高,甲同学高。那么,甲同学的就会优先被他所在省份的教育考试院的电脑检索系统检索。那在检索的时候,考生乙的档案是属于停滞状态的。先看甲同学报的所有志愿,然后再看乙同学报的志愿。所以通过这个案例,我们就知道分数优先,遵循志愿。按照每个考生他所报的志愿从第一个到第二个都是按照这种平行的顺序依次进行提档。那么被提档之后,这名考生等同于他的提档机会就没有了。

那再看第二个问题,如果说考生甲被第一志愿提档了,但是报专业的时候因为一些因素被退档了。那么考生甲被退档之后,它还能再向北京林业大学继续投档吗?答案是否定的。因为一轮投档就一次机会,如果北京邮电大学被退了,那么我们就会去一批征集志愿,或者是二批次。如果是整个本科批次合并的,就会一退到底,直接到专科或者复读。很多省份在2019年是最后一届文理分科。那么对于2020年之后,我们都是新高考选科,那么您想复读的话可能不符合复读,或者再报考的要求。所以今年对于2019年高三的家长来说,今年压力比往年都要大,我们必须要保证我们孩子报考的志愿一次性成功,不能复读。

3.项目开发

3.1技术栈

  • JDK8
  • MySQL5.7
  • springboot2.3
  • maven3.6.3(需要安装,否则没有依赖)
  • vue2.0(前端开发环境,并不必需)
  • vue-cli3(前端开发环境,并不必需)

3.2环境配置

  • 打开Mysql,创建数据库
CREATE DATABASE `<你的数据库名>` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci';
-- 例如:CREATE DATABASE `db_enroll` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_general_ci';
  • 进入数据库,运行sql文件,在sql文件夹下,可以把sql放在一个没有中文路径的地方,否则有可能出错
-- 进入刚刚创建的数据库
use db_enroll;
-- 运行路径下的sql文件
source /path/to/sql/db_enroll.sql
  • 修改springboot配置文件application.yml,找到下面配置
enroll:login:# 登录用户名adminName: admin# 登录密码adminPass: 123456# 改为自己的数据库名database: DATABASE_NAME# 改为自己的数据库密码(账号默认root)dbpass: MYSQL_PASSWORD

3.3项目配置

spring:datasource:username: rootpassword: ${enroll.dbpass}url: jdbc:mysql://localhost:3306/${enroll.database}?serverTimezone=GMT%2B8&allowMultiQueries=truedriver-class-name: com.mysql.cj.jdbc.Drivertype: com.alibaba.druid.pool.DruidDataSourcedruid:# 连接池的配置信息# 初始化大小,最小,最大initial-size: 5min-idle: 5maxActive: 20# 配置获取连接等待超时的时间maxWait: 60000# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒timeBetweenEvictionRunsMillis: 60000# 配置一个连接在池中最小生存的时间,单位是毫秒minEvictableIdleTimeMillis: 300000validationQuery: SELECT 1testWhileIdle: truetestOnBorrow: falsetestOnReturn: false# 打开PSCache,并且指定每个连接上PSCache的大小poolPreparedStatements: truemaxPoolPreparedStatementPerConnectionSize: 20# 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙filters: stat,slf4j# 通过connectProperties属性来打开mergeSql功能;慢SQL记录connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000# 配置DruidStatFilterweb-stat-filter:enabled: trueurl-pattern: "/*"exclusions: "*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*"# 配置DruidStatViewServletstat-view-servlet:url-pattern: "/druid/*"# IP白名单(没有配置或者为空,则允许所有访问)allow: 127.0.0.1,192.168.163.1# IP黑名单 (存在共同时,deny优先于allow)reset-enable: false# 登录名login-username: admin# 登录密码login-password: 123456filter:wall:config:multi-statement-allow: trueinitialization-mode: ALWAYSschema:- classpath:sql/schema.sqlinitialize: truedevtools:restart:enabled: truejackson:time-zone: GMT+8date-format: yyyy-MM-dd HH:mm:ss
mybatis:configuration:map-underscore-to-camel-case: truemapper-locations:- classpath:mybatis/mapper/*.xmltype-aliases-package: org.enroll.pojoenroll:login:adminName: adminadminPass: 123456database: db_enrolldbpass: 15975867048

3.4配置类

全局异常捕捉

package org.enroll.configuration;import org.enroll.interceptor.LoginInterceptor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;
import org.springframework.jdbc.datasource.init.DataSourceInitializer;
import org.springframework.jdbc.datasource.init.DatabasePopulator;
import org.springframework.jdbc.datasource.init.ResourceDatabasePopulator;
import org.springframework.web.servlet.config.annotation.CorsRegistry;
import org.springframework.web.servlet.config.annotation.InterceptorRegistration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;import javax.sql.DataSource;
import java.util.HashMap;@Configuration
public class EnrollConfig implements WebMvcConfigurer {@AutowiredLoginInterceptor interceptor;@Value("classpath:sql/schema.sql")private Resource dataScript;@Overridepublic void addInterceptors(InterceptorRegistry registry) {InterceptorRegistration registration = registry.addInterceptor(interceptor);registration.addPathPatterns("/**");registration.excludePathPatterns("/login/doLogin");}@Overridepublic void addCorsMappings(CorsRegistry registry) {registry.addMapping("/**").allowedOrigins("http://localhost:8000").allowedMethods("GET","HEAD","POST","PUT","DELETE","OPTIONS").allowedHeaders("*").allowCredentials(true).maxAge(3600).allowedHeaders("*");}@Beanpublic HashMap<String, Object> globalStorage(){return new HashMap<>();}@Beanpublic DataSourceInitializer dataSourceInitializer(final DataSource dataSource) {final DataSourceInitializer initializer = new DataSourceInitializer();initializer.setDataSource(dataSource);initializer.setDatabasePopulator(databasePopulator());initializer.afterPropertiesSet();return initializer;}private DatabasePopulator databasePopulator() {final ResourceDatabasePopulator populator = new ResourceDatabasePopulator();populator.addScript(dataScript);return populator;}
}

登陆信息类

package org.enroll.configuration;import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;@Data
@Component
@ConfigurationProperties(prefix = "enroll.login")
public class LoginProperties {private String adminName;private String adminPass;
}

拦截器


@Component
public class LoginInterceptor implements HandlerInterceptor {@Resource(name = "globalStorage")Map<String, Object> storage;public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
//        if(request.getSession().equals(storage.get("authSession")))
//            return true;
//        response.setCharacterEncoding("UTF-8");
//        response.setContentType("application/json");
//        response.getWriter().println("{\"code\":\"010\",\"data\":null,\"message\":\"未登录\"}");
//        return false;return true;}
}

3.5常用工具类

查询结果集

@Data
public class QueryResultOption {private Integer rank;private Integer departmentId;private String majorId;}

json常量

@Getter
@Setter
@AllArgsConstructor
public class JsonResponse {public static final String OK = "000";public static final String SYSTEM_ERROR = "100";public static final String INVALID_REQUEST = "001";public static final String AUTH_ERR = "010";private String code;private Object data;private String message;}

3.6业务代码

@RestController
@RequestMapping("/student")
public class StudentController {@AutowiredIStudentService studentService;@RequestMapping("/getStudentRaw")public JsonResponse getStudentRaw(@RequestParam(required = false, defaultValue = "1") Integer currentPage){if(currentPage == null || currentPage<=0)return new JsonResponse(JsonResponse.INVALID_REQUEST,null, null);return new JsonResponse(JsonResponse.OK, studentService.getStudentRaw(currentPage), null);}@RequestMapping("/getAdjustStudentRaw")public JsonResponse getAdjustStudentRaw(@RequestParam(required = false, defaultValue = "1") int currentPage){return new JsonResponse(JsonResponse.OK, studentService.getAdjustStudentRaw(currentPage), null);}@RequestMapping("/getExitStudentRaw")public JsonResponse getExitStudentRaw(@RequestParam(required = false, defaultValue = "1") int currentPage){return new JsonResponse(JsonResponse.OK, studentService.getExitStudentRaw(currentPage), null);}@RequestMapping("/doEnroll")public JsonResponse doEnroll(){studentService.doEnroll();return new JsonResponse(JsonResponse.OK, null, null);}@RequestMapping("/doAdjust")public JsonResponse doAdjust(){studentService.doAdjust();return new JsonResponse(JsonResponse.OK, null, null);}//    StatisticsResult getResult(int currentPage, boolean desc);@RequestMapping("/getResult")public JsonResponse getResult(@RequestParam(required = false, defaultValue = "1") int currentPage,@RequestParam(required = false, defaultValue = "false") boolean desc,QueryResultOption option){return new JsonResponse(JsonResponse.OK, studentService.getResult(currentPage, desc, option), null);}
//    StatisticsResult getResultByDepartment( int departmentId, int currentPage, boolean desc);/*** @description t通过学院、专业、排名查询已弃用,请使用上面的getResult* @author 李宏鑫* @param null* @return* @updateTime 2021/1/7 20:53* @throws*/@RequestMapping("/getResultByDepartment")@Deprecatedpublic JsonResponse getResultByDepartment(int departmentId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){return new JsonResponse(JsonResponse.OK, studentService.getResultByDepartment(departmentId, currentPage, desc), null);}
//    StatisticsResult getResultByMajor( String majorId, int currentPage, boolean desc);@RequestMapping("/getResultByMajor")@Deprecatedpublic JsonResponse getResultByMajor(String majorId, @RequestParam(required = false, defaultValue = "1") int currentPage, @RequestParam(required = false, defaultValue = "false") boolean desc){return new JsonResponse(JsonResponse.OK, studentService.getResultByMajor(majorId, currentPage, desc), null);}@RequestMapping("/searchStudent")@Deprecatedpublic JsonResponse searchStudent(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){return new JsonResponse(JsonResponse.OK, studentService.searchStudent(currentPage,keyword), null);}@RequestMapping("/searchStudentByCandidate")public JsonResponse searchStudentByCandidate(@RequestParam(required = false, defaultValue = "1") int currentPage,String keyword){return new JsonResponse(JsonResponse.OK, studentService.searchStudentByCandidate(currentPage,keyword), null);}@RequestMapping("/getStudentBeforeRank")public JsonResponse getStudentBeforeRank(@RequestParam(required = false, defaultValue = "1") int currentPage, int rank){return new JsonResponse(JsonResponse.OK, studentService.getStudentBeforeRank(currentPage, rank), null);}@RequestMapping("/getStatisticsResult")public JsonResponse getStatisticsResult(){return new JsonResponse(JsonResponse.OK, studentService.getStatisticsResult(), null);}
//    List<Map<String, Object>> getResultInDepartment(int departmentId);@RequestMapping("/getStatisticsResultInDepartment")public JsonResponse getStatisticsResultInDepartment(){return new JsonResponse(JsonResponse.OK, studentService.getStatisticsResultInDepartment(), null);}
//    List<Map<String, Object>> getResultInMajor(String majorId);@RequestMapping("/getStatisticsResultInMajor")public JsonResponse getStatisticsResultInMajor(){return new JsonResponse(JsonResponse.OK, studentService.getStatisticsResultInMajor(), null);}//    Map<String, Integer> getDistribute();@RequestMapping("/getDistribute")public JsonResponse getDistribute(){return new JsonResponse(JsonResponse.OK, studentService.getDistribute(), null);}//    Map<String, Integer> getDistributeInProvince(String province);@RequestMapping("/getDistributeInProvince")public JsonResponse getDistributeInProvince(String province){return new JsonResponse(JsonResponse.OK, studentService.getDistributeInProvince(province), null);}//    Map<String, Integer> getGradeDistribute();@RequestMapping("/getGradeDistribute")public JsonResponse getGradeDistribute(){return new JsonResponse(JsonResponse.OK, studentService.getGradeDistribute(), null);}//    Map<String, Integer> getGradeDistributeByDepartment( int departmentId);@RequestMapping("/getGradeDistributeByDepartment")public JsonResponse getGradeDistributeByDepartment(int departmentId){return new JsonResponse(JsonResponse.OK, studentService.getGradeDistributeByDepartment(departmentId), null);}//    Map<String, Integer> getGradeDistributeByMajor(String majorId);@RequestMapping("/getGradeDistributeByMajor")public JsonResponse getGradeDistributeByMajor(String majorId){return new JsonResponse(JsonResponse.OK, studentService.getGradeDistributeByMajor(majorId), null);}//    Map<String, Integer> getCountDistributeInDepartment();@RequestMapping("/getCountDistributeInDepartment")public JsonResponse getCountDistributeInDepartment(){return new JsonResponse(JsonResponse.OK, studentService.getCountDistributeInDepartment(), null);}//    Map<String, Integer> getCountDistributeInMajor();@RequestMapping("/getCountDistributeInMajor")public JsonResponse getCountDistributeInMajor(){return new JsonResponse(JsonResponse.OK, studentService.getCountDistributeInMajor(), null);}//    Map<String, Integer> getCountDistributeInMajorByDepartment(int departmentId);@RequestMapping("/getCountDistributeInMajorByDepartment")public JsonResponse getCountDistributeInMajorByDepartment(int departmentId){return new JsonResponse(JsonResponse.OK, studentService.getCountDistributeInMajorByDepartment(departmentId), null);}@RequestMapping("/reset")@Deprecatedpublic JsonResponse reset(){studentService.reset();return new JsonResponse(JsonResponse.OK, null, null);}@RequestMapping("/formalReady")@Deprecatedpublic JsonResponse formalReady(){studentService.formallyReady();return new JsonResponse(JsonResponse.OK, null, null);}
}

3.7前端代码

<template><div id="back-stage-student-info"><empty-data v-if="studentInfo == null || studentInfo.length === 0"/><div id="student-plan-info" v-else><table-row-count :count="total"></table-row-count><el-table:data="studentInfo"stripestyle="width: 100%"><el-table-columnprop="candidate"label="准考证号"width="110"></el-table-column><el-table-columnprop="studentName"label="姓名"></el-table-column><el-table-columnprop="totalGrade"label="总分"></el-table-column><el-table-columnprop="rank"label="排名"></el-table-column><el-table-columnprop="will1"label="志愿1"></el-table-column><el-table-columnprop="will2"label="志愿2"></el-table-column><el-table-columnprop="will3"label="志愿3"></el-table-column><el-table-columnprop="will4"label="志愿4"></el-table-column><el-table-columnprop="will5"label="志愿5"></el-table-column><el-table-columnprop="will6"label="志愿6"></el-table-column><el-table-columnprop="province"label="省份"></el-table-column><el-table-columnprop="city"label="城市"></el-table-column><el-table-columnprop="subjectType"label="科类"></el-table-column></el-table><div class="page-bar" ><el-paginationlayout="prev, pager, next, jumper"@current-change="changePage":page-size="50":current-page.sync="currentPage"hide-on-single-page:total="total"></el-pagination></div></div></div>
</template><script>import {request} from "../../network/request";import EmptyData from "./EmptyData"import TableRowCount from './TableRowCount'export default {name: "StudentInfo",data() {return {studentInfo: null,currentPage: 1,total: 0,loading: null}},methods: {changePage(){this.loadStudentInfo();},loadStudentInfo(){this.setLoading();request({url: 'student/getStudentRaw',params: {currentPage: this.currentPage}}) .then( res => {if (res.code === '000'){this.studentInfo = res.data.list;this.total = res.data.total;} else {this.$message.error(res.message)}}).catch( err => {this.$message.error('系统错误')}).finally( () => {this.setUnloading();})},setLoading(){this.loading = this.$loading({lock: true,text: 'Loading',spinner: 'el-icon-loading',background: 'rgba(0, 0, 0, 0.7)'});},setUnloading(){this.loading.close();}},created(){this.loadStudentInfo();},components: {EmptyData,TableRowCount}}
</script><style scoped lang="less">.page-bar{width: 500px;margin: 30px auto;}
</style>

4.项目演示

4.1登录

4.2导入(测试文件在excel文件夹下,数据为随机模拟)

表格信息

4.3统计信息

4.4生源地分布

4.5导出结果

5.总结

广东工业大学课程设计 数据库课程设计 平行志愿录取系统(后端代码,广东工业大学数据库大作业) 基于java、spring、MySQL数据库、vue.js的课程设计

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/894779.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

chrome浏览器chromedriver下载

chromedriver 下载地址 https://googlechromelabs.github.io/chrome-for-testing/ 上面的链接有和当前发布的chrome浏览器版本相近的chromedriver 实际使用感受 chrome浏览器会自动更新&#xff0c;可以去下载最新的chromedriver使用&#xff0c;自动化中使用新的chromedr…

Redis常见数据类型与编码方式

⭐️前言⭐️ 本小节围绕Redis中常见的数据类型与编码方式展开。 &#x1f349;欢迎点赞 &#x1f44d; 收藏 ⭐留言评论 &#x1f349;博主将持续更新学习记录收获&#xff0c;友友们有任何问题可以在评论区留言 &#x1f349;博客中涉及源码及博主日常练习代码均已上传GitHu…

win编译openssl

一、perl执行脚本 1、安装perl脚本 perl安装 2、配置perl脚本 perl Configure VC-WIN32 no-asm no-shared --prefixE:\openssl-x.x.x\install二、编译openssl 1、使用vs工具编译nmake 如果使用命令行nmake编译会提示“无法打开包括文件: “limits.h”“ 等错误信息 所以…

【Kubernetes Pod间通信-第2篇】使用BGP实现Pod到Pod的通信

Kubernetes中Pod间的通信 本系列文章共3篇: 【Kubernetes Pod间通信-第1篇】在单个子网中使用underlay网络实现Pod到Pod的通信【Kubernetes Pod间通信-第2篇】使用BGP实现Pod到Pod的通信(本文介绍)【Kubernetes Pod间通信-第3篇】Kubernetes中Pod与ClusterIP服务之间的通信…

< 自用文儿 > 下载 MaxMind GeoIP Databases 对攻击的 IP 做 地理分析

起因 两个 VPM/VPS&#xff0c;安装了 fail2ban 去拦截密码穷举攻击。每天的记录都在增长&#xff0c;以前复制屏幕输出就行&#xff0c;一屏的内容还容易粘贴出来的。昨天已经过 500 条&#xff0c;好奇 fail2ban 是如何存储这些内容的&#xff1f;就发现它在使用 SQLite3 数…

SpringCloudGateWay和Sentinel结合做黑白名单来源控制

假设我们的分布式项目&#xff0c;admin是8087&#xff0c;gateway是8088&#xff0c;consumer是8086 我们一般的思路是我们的请求必须经过我们的网关8088然后网关转发到我们的分布式项目&#xff0c;那我要是没有处理我们绕过网关直接访问项目8087和8086不也是可以&#xff1…

C#面试常考随笔12:游戏开发中常用的设计模式【C#面试题(中级篇)补充】

C#面试题&#xff08;中级篇&#xff09;&#xff0c;详细讲解&#xff0c;帮助你深刻理解&#xff0c;拒绝背话术&#xff01;-CSDN博客 简单工厂模式 优点&#xff1a; 根据条件有工厂类直接创建具体的产品 客户端无需知道具体的对象名字&#xff0c;可以通过配置文件创建…

数字人|通过语音和图片来创建高质量的视频

简介 arXiv上的计算机视觉领域论文&#xff1a; AniPortrait: Audio-Driven Synthesis of Photorealistic Portrait Animation AniPortrait&#xff1a;照片级真实感肖像动画的音频驱动合成 核心内容围绕一种新的人像动画合成框架展开。 研究内容 提出 AniPortrait 框架&a…

数据结构实战之线性表(三)

目录 1.顺序表释放 2.顺序表增加空间 3.合并顺序表 4.线性表之链表实现 1.项目结构以及初始代码 2.初始化链表(不带头结点) 3.链表尾部插入数据并显示 4.链表头部插入数据 5.初始化链表&#xff08;带头结点&#xff09; 6.带头结点的链表头部插入数据并显示 7.带头结…

Docker使用指南(一)——镜像相关操作详解(实战案例教学,适合小白跟学)

目录 1.镜像名的组成 2.镜像操作相关命令 镜像常用命令总结&#xff1a; 1. docker images 2. docker rmi 3. docker pull 4. docker push 5. docker save 6. docker load 7. docker tag 8. docker build 9. docker history 10. docker inspect 11. docker prune…

C++基础day1

前言&#xff1a;谢谢阿秀&#xff0c;指路阿秀的学习笔记 一、基础语法 1.构造和析构: 类的构造函数是一种特殊的函数&#xff0c;在创建一个新的对象时调用。类的析构函数也是一种特殊的函数&#xff0c;在删除所创建的对象时调用。 构造顺序&#xff1a;父类->子类 析…

尝试ai生成figma设计

当听到用ai 自动生成figma设计时&#xff0c;不免好奇这个是如何实现的。在查阅了不少资料后&#xff0c;有了一些想法。参考了&#xff1a;在figma上使用脚本自动生成色谱 这篇文章提供的主要思路是&#xff1a;可以通过脚本的方式构建figma设计。如果我们使用ai 生成figma脚本…

【PyQt】pyqt小案例实现简易文本编辑器

pyqt小案例实现简易文本编辑器 分析 实现了一个简单的文本编辑器&#xff0c;使用PyQt5框架构建。以下是代码的主要功能和特点&#xff1a; 主窗口类 (MyWindow): 继承自 QWidget 类。使用 .ui 文件加载用户界面布局。设置窗口标题、状态栏消息等。创建菜单栏及其子菜单项&…

【电脑系统】电脑突然(蓝屏)卡死发出刺耳声音

文章目录 前言问题描述软件解决方案尝试硬件解决方案尝试参考文献 前言 在 更换硬盘 时遇到的问题&#xff0c;有时候只有卡死没有蓝屏 问题描述 更换硬盘后&#xff0c;电脑用一会就卡死&#xff0c;蓝屏&#xff0c;显示蓝屏代码 UNEXPECTED_STORE_EXCEPTION 软件解决方案…

【大模型LLM面试合集】大语言模型架构_Transformer架构细节

Transformer架构细节 1.Transformer各个模块的作用 &#xff08;1&#xff09;Encoder模块 经典的Transformer架构中的Encoder模块包含6个Encoder Block. 每个Encoder Block包含两个⼦模块, 分别是多头⾃注意⼒层, 和前馈全连接层. 多头⾃注意⼒层采⽤的是⼀种Scaled Dot-Pr…

【华为OD-E卷 - 113 跳格子2 100分(python、java、c++、js、c)】

【华为OD-E卷 - 跳格子2 100分&#xff08;python、java、c、js、c&#xff09;】 题目 小明和朋友玩跳格子游戏&#xff0c;有 n 个连续格子组成的圆圈&#xff0c;每个格子有不同的分数&#xff0c;小朋友可以选择以任意格子起跳&#xff0c;但是不能跳连续的格子&#xff…

国防科大:双目标优化防止LLM灾难性遗忘

&#x1f4d6;标题&#xff1a;How to Complete Domain Tuning while Keeping General Ability in LLM: Adaptive Layer-wise and Element-wise Regularization &#x1f310;来源&#xff1a;arXiv, 2501.13669 &#x1f31f;摘要 &#x1f538;大型语言模型&#xff08;LLM…

Verilog基础(一):基础元素

verilog基础 我先说,看了肯定会忘,但是重要的是这个过程,我们知道了概念,知道了以后在哪里查询。语法都是术,通用的概念是术。所以如果你有相关的软件编程经验,那么其实开启这个学习之旅,你会感受到熟悉,也会感受到别致。 入门 - 如何开始 欢迎来到二进制的世界,数字…

多无人机--强化学习

这个是我对于我的大创项目的构思&#xff0c;随着时间逐渐更新 项目概要 我们的项目平台来自挑战杯揭绑挂帅的无人机对抗项目&#xff0c;但是在由于时间原因&#xff0c;并未考虑强化学习&#xff0c;所以现在通过大创项目来弥补遗憾 我们项目分为三部分&#xff0c;分为虚…

Python----Python高级(并发编程:进程Process,多进程,进程间通信,进程同步,进程池)

一、进程Process 拥有自己独立的堆和栈&#xff0c;既不共享堆&#xff0c;也不共享栈&#xff0c;进程由操作系统调度&#xff1b;进程切换需要的资源很最大&#xff0c;效率低。 对于操作系统来说&#xff0c;一个任务就是一个进程&#xff08;Process&#xff09;&#xff…