前端用F11打开伪装更新页面demo后,老板被欺骗多次!

news2024/11/19 13:25:27

前言

        无意间看见朋友分享的页面看到了一个有趣的页面,通过F11之后给人以假乱真的感觉,这个代码并不难,我们一起来看看!

正文

        通过引入jQuery快速实现

一、js逻辑代码

function changeFullScreen() {
	const element = document.documentElement
    console.log(1)
	// 如果是全屏状态
	if (this.fullscreen) {
		// 如果浏览器有这个Function
		if (document.exitFullscreen) {
			document.exitFullscreen()
		} else if (document.webkitCancelFullScreen) {
			document.webkitCancelFullScreen()
		} else if (document.mozCancelFullScreen) {
			document.mozCancelFullScreen()
		} else if (document.msExitFullscreen) {
			document.msExitFullscreen()
		}
	} else {
		// 如果浏览器有这个Function
		if (element.requestFullscreen) {
			element.requestFullscreen()
		} else if (element.webkitRequestFullScreen) {
			element.webkitRequestFullScreen()
		} else if (element.mozRequestFullScreen) {
			element.mozRequestFullScreen()
		} else if (element.msRequestFullscreen) {
			element.msRequestFullscreen()
		}
	}
	// 判断全屏状态的变量
	this.fullscreen = !this.fullscreen
}

二、样式代码

html,
		body,
		div {
		  margin: 0;
		  padding: 0;
		}
		 
		html,
		body {
		  width: 100%;
		  height: 100%;
		}
		.tips-to{
		  text-align: center;
		  color: #ffffff;
		  font-weight: 400;
		  font-size: 18px;
		  font-style:normal;
		  position: absolute;
		  bottom: 68px;
		  left: 0;
		  right: 0;
		}
		.update,.tips-one{
		  width: 375px;
		  text-align: center;
		  color: #ffffff;
		  font-weight: 400;
		  font-size: 18px;
		  font-style:normal;
		  margin: 0;
		}
		.text{
		  margin: 0 auto;
		  margin-top: 68px;
		  margin-left: -163px;
		}
		.loading i {
		  margin: auto;
		  position: absolute;
		  top: calc(50% - 120px);
		  left: calc(50% - 20px);
		  width: 45px;
		  height: 45px;
		  display: block;
		}
		 
		.loading span {
		  position: absolute;
		  width: 100%;
		  height: 100%;
		  opacity: 0;
		}
		 
		.loading span:after {
		  content: "";
		  display: block;
		  position: absolute;
		  left: 0px;
		  top: 0px;
		  width: 6px;
		  height: 6px;
		  background: var(--main, #ffffff);
		  border-radius: 50%;
		}
		 
		.loading span:nth-child(1) {
		  animation: i1 5.5s 0.2s infinite;
		}
		 
		.loading span:nth-child(2) {
		  animation: i2 5.5s 0.4s infinite;
		}
		 
		.loading span:nth-child(3) {
		  animation: i3 5.5s 0.6s infinite;
		}
		 
		.loading span:nth-child(4) {
		  animation: i4 5.5s 0.8s infinite;
		}
		 
		.loading span:nth-child(5) {
		  animation: i5 5.5s 1s infinite;
		}
		 
		.loading span:nth-child(6) {
		  animation: i6 5.5s 1.2s infinite;
		}
		 
		@keyframes i1 {
		  0% {
		    opacity: 1;
		    transform: rotate(190deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(920deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(930deg);
		  }
		}
		@keyframes i2 {
		  0% {
		    opacity: 1;
		    transform: rotate(180deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(910deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(920deg);
		  }
		}
		@keyframes i3 {
		  0% {
		    opacity: 1;
		    transform: rotate(170deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(900deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(910deg);
		  }
		}
		@keyframes i4 {
		  0% {
		    opacity: 1;
		    transform: rotate(160deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(890deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(900deg);
		  }
		}
		@keyframes i5 {
		  0% {
		    opacity: 1;
		    transform: rotate(150deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(880deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(880deg);
		  }
		}
		@keyframes i6 {
		  0% {
		    opacity: 1;
		    transform: rotate(140deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(870deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(880deg);
		  }
		}

三、完整代码

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>F11伪装更新页面</title>
    <!-- <link rel="stylesheet" href="./loding.css"> -->
	<style>
		html,
		body,
		div {
		  margin: 0;
		  padding: 0;
		}
		 
		html,
		body {
		  width: 100%;
		  height: 100%;
		}
		.tips-to{
		  text-align: center;
		  color: #ffffff;
		  font-weight: 400;
		  font-size: 18px;
		  font-style:normal;
		  position: absolute;
		  bottom: 68px;
		  left: 0;
		  right: 0;
		}
		.update,.tips-one{
		  width: 375px;
		  text-align: center;
		  color: #ffffff;
		  font-weight: 400;
		  font-size: 18px;
		  font-style:normal;
		  margin: 0;
		}
		.text{
		  margin: 0 auto;
		  margin-top: 68px;
		  margin-left: -163px;
		}
		.loading i {
		  margin: auto;
		  position: absolute;
		  top: calc(50% - 120px);
		  left: calc(50% - 20px);
		  width: 45px;
		  height: 45px;
		  display: block;
		}
		 
		.loading span {
		  position: absolute;
		  width: 100%;
		  height: 100%;
		  opacity: 0;
		}
		 
		.loading span:after {
		  content: "";
		  display: block;
		  position: absolute;
		  left: 0px;
		  top: 0px;
		  width: 6px;
		  height: 6px;
		  background: var(--main, #ffffff);
		  border-radius: 50%;
		}
		 
		.loading span:nth-child(1) {
		  animation: i1 5.5s 0.2s infinite;
		}
		 
		.loading span:nth-child(2) {
		  animation: i2 5.5s 0.4s infinite;
		}
		 
		.loading span:nth-child(3) {
		  animation: i3 5.5s 0.6s infinite;
		}
		 
		.loading span:nth-child(4) {
		  animation: i4 5.5s 0.8s infinite;
		}
		 
		.loading span:nth-child(5) {
		  animation: i5 5.5s 1s infinite;
		}
		 
		.loading span:nth-child(6) {
		  animation: i6 5.5s 1.2s infinite;
		}
		 
		@keyframes i1 {
		  0% {
		    opacity: 1;
		    transform: rotate(190deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(920deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(930deg);
		  }
		}
		@keyframes i2 {
		  0% {
		    opacity: 1;
		    transform: rotate(180deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(910deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(920deg);
		  }
		}
		@keyframes i3 {
		  0% {
		    opacity: 1;
		    transform: rotate(170deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(900deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(910deg);
		  }
		}
		@keyframes i4 {
		  0% {
		    opacity: 1;
		    transform: rotate(160deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(890deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(900deg);
		  }
		}
		@keyframes i5 {
		  0% {
		    opacity: 1;
		    transform: rotate(150deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(880deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(880deg);
		  }
		}
		@keyframes i6 {
		  0% {
		    opacity: 1;
		    transform: rotate(140deg);
		    animation-timing-function: cubic-bezier(0.29, 0.44, 0.32, 0.74);
		  }
		  7% {
		    opacity: 1;
		    transform: rotate(300deg);
		    animation-timing-function: linear;
		  }
		  30% {
		    opacity: 1;
		    transform: rotate(450deg);
		    animation-timing-function: cubic-bezier(0.53, 0.27, 0.37, 0.81);
		  }
		  39% {
		    opacity: 1;
		    transform: rotate(645deg);
		    animation-timing-function: linear;
		  }
		  63% {
		    opacity: 1;
		    transform: rotate(800deg);
		    animation-timing-function: cubic-bezier(0.5, 0.32, 0.82, 0.54);
		  }
		  68% {
		    opacity: 1;
		    transform: rotate(870deg);
		    animation-timing-function: ease-in;
		  }
		  69% {
		    opacity: 0;
		    transform: rotate(880deg);
		  }
		}
	</style>
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body onclick="changeFullScreen()" style="background-color: #3277D1; cursor:none;">
    <div class="loading">
        <i>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <span></span>
            <div class="text">
                <h3 class="update">正在进行更新 &nbsp;  5%</h3>
                <h3 class="tips-one">请不要关闭电脑。完成此操作需要一定时间。</h3>
            </div>
        </i>
        
    </div>

    <div class="tips-to">
        你的电脑将重启若干次
    </div>
</body>
<script>
function changeFullScreen() {
	const element = document.documentElement
    console.log(1)
	// 如果是全屏状态
	if (this.fullscreen) {
		// 如果浏览器有这个Function
		if (document.exitFullscreen) {
			document.exitFullscreen()
		} else if (document.webkitCancelFullScreen) {
			document.webkitCancelFullScreen()
		} else if (document.mozCancelFullScreen) {
			document.mozCancelFullScreen()
		} else if (document.msExitFullscreen) {
			document.msExitFullscreen()
		}
	} else {
		// 如果浏览器有这个Function
		if (element.requestFullscreen) {
			element.requestFullscreen()
		} else if (element.webkitRequestFullScreen) {
			element.webkitRequestFullScreen()
		} else if (element.mozRequestFullScreen) {
			element.mozRequestFullScreen()
		} else if (element.msRequestFullscreen) {
			element.msRequestFullscreen()
		}
	}
	// 判断全屏状态的变量
	this.fullscreen = !this.fullscreen
}

</script>
</html>

       

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

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

相关文章

优雅而高效的JavaScript——try...catch语句(js异常处理)

&#x1f601;博主&#xff1a;小猫娃来啦 &#x1f601;文章核心&#xff1a;优雅而高效的JavaScript——try…catch语句 文章核心 异常处理的重要性try...catch语句的基本语法和用法异常类型的分类和捕获内置异常类型自定义异常类型 try...catch的嵌套和多个块的应用finally子…

华为智选SF5,AITO问界的车怎么样

#华为智选 #赛力斯SF5 #aito问界m5 #aito问界m7 #华为汽车 华为的车&#xff0c;后杠焊两点&#xff0c;拉车的时候&#xff0c;拖车钩断了&#xff0c;后杠拉出来了&#xff0c;这质量可以吗&#xff1f;是否应该全部召回&#xff1f;M5&#xff0c;M7是不是也这样&#xff1f…

JAVA抽象概念大揭秘:用生动有趣的方式,带你领略编程的无限可能

抽象的概念 抽象类和抽象方法是面向对象编程中的重要概念&#xff0c;用于实现抽象和继承的特性。抽象类是不能被实例化的类&#xff0c;通常用作其他类的基类。抽象方法是在抽象类中声明但没有具体实现的方法&#xff0c;需要在子类中实现具体的功能。 抽象类的用途 假设我…

数据通信——应用层(Telnet与WWW)

一&#xff0c;引言 我们使用交换机和路由器以及其它网络设备时&#xff0c;需要进行一些配置&#xff0c;因此需要登录的设备内部进行操作。登录到设备内部的方法有很多&#xff0c;比如通过console口或者其他串口与对端设备相连&#xff0c;也可以通过wifi无线连接&#xff0…

NET MVC中如何使用Element-Plus

目的 在Net Mvc5或者Net Core Mvc中&#xff0c;我们如何通过cdn的放引入Element-Plus并&#xff0c;使用Element-Plus相关的组件&#xff0c;包含Vue-Icon和多语言的使用。 准备工作 1.这里为了方便&#xff0c;我们直接使用html文件来代替Mvc项目。新建一个index.html文件…

硬件知识:DDR3、DDR4和DDR5内存条有啥区别,看完你就懂

目录 一、DDR3内存 二、DDR4内存 三、DDR5内存 DDR3、DDR4和DDR5是计算机内存类型的名称&#xff0c;代表第三代、第四代和第五代双倍数据速率&#xff08;Double Data Rate&#xff0c;简称DDR&#xff09;同步动态随机存取存储器&#xff08;SDRAM&#xff09;。 不同内存…

小程序开发平台源码系统 +功能丰富 +有完整搭建教程

大家好啊&#xff0c;今天要给大家分享的这款系统可就厉害了。全新升级的小程序开发平台源码系统&#xff0c;其中包含了15项不同小程序功能&#xff0c;各行各业都有。一起来看看吧。以下是部分功能实现代码&#xff1a; 系统特色功能一览&#xff1a; 一、微同城本地生活服务…

项目管理中,进度管理是决定成败的关键因素!(建议收藏)

项目管理的主要目标在于确保员工充分理解其责任的目的和关键性&#xff0c;从而使其工作更具焦点和步骤性&#xff0c;以实现一目了然的效果。以小王在十字路口为例&#xff0c;项目经理就如同他的指路人&#xff0c;使其明确自己的方向&#xff0c;避免走错路。 在项目中&…

华测监测预警系统 2.2---任意文件读取漏洞

目录 1. 资产搜集 2. 漏洞复现 3. 实战总结 1. 资产搜集 直接上fofa 和 hunter 个人推荐hunter可以看到icp备案公司直接提交盒子就行了 FOFA语法 app”华测监测预警系统2.2” Hunter语法 web.body”华测监测预警系统2.2” 2. 漏洞复现 这里手动复现的&#xff0c;目录是/…

Kylin麒麟系统下安装人大金仓

虚拟机在线安装 install open-vm-tools-desktop -y 简要介绍 人大金仓数据库管理系统KingbaseES&#xff08;简称&#xff1a;金仓数据库或KingbaseES&#xff09;是北京人大金仓信息技术股份有限公司自主研制开发的具有自主知识产权的通用关系型数据库管理系统。金仓数据库主…

设计模式-装饰者模式

装饰者模式-简介 装饰器模式&#xff08;Decorator Pattern&#xff09;允许向一个现有的对象添加新的功能&#xff0c;同时又不改变其结构。这种类型的设计模式属于结构型模式&#xff0c;它是作为现有的类的一个包装。 装饰器模式通过将对象包装在装饰器类中&#xff0c;以…

Unity中Shader的深度偏移Offset

文章目录 前言一、深度偏移一般用于什么时候1、深度偏移一般用于两个模型 重合在同一平面时&#xff0c;在其中一个模型上使用深度偏移后&#xff0c;就能区别出两个模型的深度&#xff0c;从而消除闪动2、虽然&#xff0c;可以让两个模型在深度上错开一点点&#xff0c;来解决…

工业级开源facechain人物写真sd-webui插件使用方式

一、简介 facechain人物写真应用自8月11日开源了第一版证件照生成后。目前在github&#xff08;https://github.com/modelscope/facechain&#xff09;上已有近6K的star&#xff0c;论文链接&#xff1a;FaceChain: A Playground for Identity-Preserving Portrait Generation…

Linux-JVM-CPU爆表调优

CPU爆表调优 一、自定义一个死循环测试类二、运行TestDemo类三、调优1、执行top命令2、执行ps命令3、执行jstack命令 一、自定义一个死循环测试类 第7行一定会死循环&#xff0c;永远出不去 public class TestDemo {public static void main(String[] args) {new Thread(null,(…

安装mmcv及GPU版本的pytorch及torchvision

一、先装GPU版本的pytorch和torchvision pip install torch1.9.1cu111 torchvision0.10.1cu111 torchaudio0.9.1 -f https://download.pytorch.org/whl/torch_stable.html注意&#xff1a;以上适用cuda11.1版本 如果想离线安装&#xff0c;就看这篇文章 二、安装mmcv 看这篇…

Python学习之Python3.10中match-case的用法和示例

在 Python 3.10 中引入了新的 match-case 语法&#xff0c;它是一种用于模式匹配的结构。它类似于 switch-case 语句&#xff0c;可以根据不同的模式匹配执行不同的代码块。 match-case 语法的基本结构如下&#xff1a; match expression:case pattern1:# 执行代码块1case p…

SpringCloud-Seata

一、介绍 &#xff08;1&#xff09;实现分布式事务 &#xff08;2&#xff09;解决Spring只支持单机事务 &#xff08;3&#xff09;事务ID TC&#xff08;事务协调者&#xff09; TM&#xff08;事务管理者&#xff09; RM&#xff08;资源管理者&#xff09;

2021-arxiv-Prefix-Tuning- Optimizing Continuous Prompts for Generation

2021-arxiv-Prefix-Tuning- Optimizing Continuous Prompts for Generation Paper&#xff1a;https://arxiv.org/pdf/2101.00190.pdf Code&#xff1a;https://github.com/XiangLi1999/PrefixTuning 前缀调优&#xff1a;优化生成的连续提示 prefix-tunning 的基本思想也是想…

西湖大学利用 Transformer 分析百亿多肽的自组装特性,破解自组装法则

多肽是两个以上氨基酸通过肽键组成的生物活性物质&#xff0c;可以通过折叠、螺旋形成更高级的蛋白质结构。多肽不仅与多个生理活动相关联&#xff0c;还可以自组装成纳米粒子&#xff0c;参与到生物检测、药物递送、组织工程中。 然而&#xff0c;多肽的序列组成过于多样&…

瞬态抑制二极管TVS的工作原理?|深圳比创达电子EMC(上)

TVS二极管具有响应速度快、漏电流小、钳位电压稳以及无寿命衰减的特性&#xff0c;从小到信号线静电防护&#xff0c;大到电力系统抗雷击浪涌&#xff0c;TVS都发挥着至关重要的作用。本章对瞬态抑制二极管TVS工作机理展开分析&#xff0c;供产品选型参考。接下来就跟着深圳比创…