自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(35)
  • 收藏
  • 关注

原创 SQL Server警告/报错解决:对象名无效

举例:假如我们当前在S_T数据库中,我们想要访问的表course(找不到的对象)在student数据库中。如果解决了红线问题,执行时任然报错,说明无法在当前数据库中找到该对象。我们需要进入有该对象的数据库。点击鼠标右键,点击IntelliSense已启动,会发现红线消失。2.在查询的最上方添加use+数据库的名字。1.如下图,点击左上角,切换数据库。或在导航栏中找到并点击该图标。

2023-12-07 21:34:33 961

原创 网页URL链接如何添加参数

比如下面的地址,https...html+'?'+(参数)spm=...如下面这个链接,用‘`’括起来,其中spm用自己定义的变量Myspm替换。比如下面b站番剧的地址,每个参数用&连接。在script中参数的值可以用变量替换。

2023-11-28 21:46:03 875

原创 简单了解Ajax的使用

在then中获取到reg.data.result,并赋值给Time,然后调用outputTime函数将时间显示在网页上。1.访问成功会调用then(),通过res可以得到API传过来的数据。首先axios.get(`API接口`)参数是接口的地址,并且要用反引号括起来。对then中的代码进行修改,获取数值后,调用其他函数从而实现其他的功能。1.下载并导入axios.js文件和axios.min.js到文件中。2.在script标签中构造一个函数按照下面的模板调用API接口。2.访问失败会调用catch()

2023-11-07 22:55:33 77

原创 VSCode快捷键(记录)

调整鼠标停留行的格式。

2023-11-07 22:22:43 66

原创 汇编语言知识

因为比赛原因浅浅了解一下汇编语音并做下记录。

2023-10-27 18:11:50 39

原创 Pytho如何引用库

和第二个方法一样,但是上面的方法引用一个函数,这个引用库中所有函数。不会出现和自定义函数重名的情况,但是每次调用函数都要写库名。2.from <库名> import <函数>4.import <库名> as <库别名>这个方法在简化调用的同时还能避免出现重名现象。3.from <库名> import *直接引用函数,方便但是有可能出现重名现象。引用格式:<库名>.<函数>1.import <库名>引用方式:<库别名>

2023-08-18 15:02:09 597

原创 Python错误记录

分析:应该是输出语句中发现类型不符导致报错。

2023-08-08 22:35:49 1547

原创 Python语法学习记录

从c过来学python,记录一下语法的不同

2023-08-08 11:55:12 45

原创 Unity各种报错持续收集中

碰到的情况:脚本A调用脚本B的函数时,应该先初始化一个脚本B对象,通过对象调用其中的函数,而不是直接B.函数名。解决方法:try-catch或者逻辑判断(通过if判断如果除数不为0就可以做除法运算,否则不做)本文收集的是自己碰到的报错情况,方便下次碰到时查看。翻译:非静态字段、方法或属性引用的对象需要对象引用。

2023-04-16 22:37:45 636

原创 Blender学习

Ctrl+L:打开关联/传递数据小窗口。Ctrl+J:合并所有物体到当前物体。Tab:切换物体模式和编辑模式。Ctrl+Shift+Z:返回。

2023-03-22 20:20:15 79

原创 Unity C#记录总结

privated的变量添加[SerializeField]就可以显示在面板上,但是其属性不发生变化,其他脚本无法调用该变量。其中 public的变量添加[HideInInspector]前缀,就可以不显示在面板上;public或者private,public的变量可以显示在面板上。而Debug.log()中log方法是static的,可以直接访问。通过Debug的静态方法,输出数值,提出警告或报错。物体.获取组件.().函数名();

2023-03-18 21:27:08 146

原创 Unity物理系统之制作简易赛车

注意:Wheel Collider组件要存在父系物体,且父系物体有刚体组件才能可视化;这里空物体用于实现车轮的物理效果,圆柱为车轮的实际模型。给胶囊型Player添加刚体组件后,勾选“冻结旋转”选项,保证角色可以站立起来,而不会摔倒。Wheel Collider车轮碰撞器。注意:调用车轮要将前后轮与脚本相连接。将下面的代码挂在其中一个物体上即可。

2022-10-17 12:18:26 578

原创 奇奇怪怪的整理

double pow (double x,double y):计算x的y次方 头文件 cmath _gcd(a,b):计算最大公约数 头文件 algorithm a,b同类型,浮点不行

2022-05-06 15:49:59 319

原创 字符串的总结(自用)

格式两种方式:字符数组和字符串int N =105;char str[N];//字符数组string a;//字符串输入cin:读取时以空格符,回车符作为结束符,且不读取这些符号,即这些符号会停留在缓存区。cin.get:读取时以换行符作为结束符,且读取空格,换行这些符号。注意:因为cin不读入换行符,如果下一步用 cin.get 这类读换行符 去读取其他的字符串会使得 这类字符串 读入 还在缓存区的回车符 导致读入结束。即如下所示,字符串str为空。此时可以选择用getchar去读入缓存

2022-03-18 18:15:28 316

原创 翻译(21)

题目:Fibonacci Again | JXNUOJ描述:There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).这里有另一种斐波那契数列:F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2)。输入:Input consists of a sequence of lines, each con

2022-02-17 23:09:08 126

原创 翻译(20)

题目:Encoding | JXNUOJ描述:Given a string containing only 'A' - 'Z', we could encode it using the following method:给定一个仅包含'A' - 'Z'的字符串,我们能够使用以下方法编码它。1. Each sub-string containing k same characters should be encoded to "kX" where "X" is the only characte

2022-02-17 22:37:45 183

原创 翻译(19)

题目:Least Common Multiple | JXNUOJ描述:The least common multiple (LCM) of a set of positive integers is the smallest positive integer which is divisible by all the numbers in the set. For example, the LCM of 5, 7 and 15 is 105.一组正整数的最小公倍数是能被集合中所有数整除的最小正整

2022-02-14 22:34:26 209

原创 翻译(18)

题目:Prime Ring Problem | JXNUOJ描述:A ring is compose of n circles as shown in diagram. Put natural number 1, 2, ..., n into each circle separately, and the sum of numbers in two adjacent circles should be a prime.Note: the number of first circle should

2022-02-13 16:38:30 7378

原创 翻译(17)

描述:Kamishirasawa Keine always says, "If you don't know what to do, why not give mathematical practice a try."However, Cirno is way too much talented to work on simple problems. Therefore, you are now tasked to crack one.We consider one operation on a

2022-02-13 15:56:59 69

原创 翻译(16)

题目:Color Sequence | JXNUOJ描述:You are given a integer sequencecof lengthn,cidenotes theithcolor in the sequencec.We define a color sequence is legal only if it merely contains colors that appear even number of times.For example, sequence0,1...

2022-02-11 10:31:16 227

翻译 翻译(15)

题目:Chinese Valentime's Day | JXNUOJ描述:Recently, God Liu has been so absorbed in the Pac-Man game that he has even neglected his young fans.So before Chinese valentine's day,in order to have time for him to accompany the girls, while God Liu went to the

2022-02-10 20:13:03 59

翻译 翻译(14)

题目:Charging | JXNUOJ

2022-02-10 19:11:11 58

翻译 翻译(13)

题目:Big number | JXNUOJ描述:In many applications very large integers numbers are required. Some of these applications are using keys for secure transmission of data, encryption, etc. In this problem you are given a number, you have to determine the number

2022-02-09 12:21:06 190

翻译 翻译(12)

题目:Apple | JXNUOJ描述:There are a box of apples,which contains N apples. You're going to give them to M person. It is required that everyone must be given a positive integer apple, and no one must have the same amount. If it can be done, output possible;

2022-02-03 15:08:59 116

翻译 翻译(11)

题目:A simple Math Problem | JXNUOJ描述:Huanhuan challenges you to a simple math problem.Define F(x) as the sum of the decimal digits of x.For example: F(123)=1+2+3=6, F(700)=7+0+0=7.Huanhuan wants you to calculate the sum of F(j)for every i,j that s

2022-01-27 17:38:15 136

翻译 翻译(10)

题目:Digital Roots | JXNUOJ描述:The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit then that digit is the digital root. If the resulting value contains two or more digits, those di

2022-01-26 20:58:01 139

翻译 翻译(9)

题目:u Calculate e | JXNUOJ描述:有一个关于e的数学公式,即i从0开始到n,对i的阶乘的倒数求和,n可以接近于无限。这能够通过较小的n,产生精确的e的近似值。输出:通过上述的公式和n的值(0~9)输出e的近似值。你的输出格式应该参考下面的样例。词汇:infinity 无限 yield 产生 approximation 近似值 formula 公式 generated 产生,生成...

2022-01-25 22:17:24 63

翻译 翻译(8)

题目:Tempter of the Bone | JXNUOJ描述:The doggie found a bone in an ancient maze, which fascinated him a lot. However, when he picked it up, the maze began to shake, and the doggie could feel the ground sinking. He realized that the bone was a trap, and he

2022-01-24 10:02:00 192

翻译 翻译(7)

题目:FatMouse'Trade | JXNUOJ描述:FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.The warehouse has N rooms. The i-th room contains J[i] pounds of JavaBeans and requires F..

2022-01-23 23:01:54 256

翻译 今日份翻译

翻译(6)题目:Elevator描述:The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one f

2022-01-22 22:15:54 58

翻译 翻译(5)

题目:Quoit Design | JXNUOJ描述:Have you ever played quoit in a playground? Quoit is a game in which flat rings are pitched at some toys, with all the toys encircled awarded.In the field of Cyberground, the position of each toy is fixed, and the ring is care

2022-01-21 16:33:13 357

翻译 翻译(4)

题目:Tick and Tick | JXNUOJ描述:The three hands of the clock are rotating every second and meeting each other many times everyday. Finally, they get bored of this and each of them would like to stay away from the other two. A hand is happy if it is at leas

2022-01-20 16:01:23 67

翻译 翻译(3)

题目:Number Sequence | JXNUOJ翻译:描述:一个数组的定义如下:f(1) = 1, f(2) = 1, f(n) = (A * f(n - 1) + B * f(n - 2)) mod 7.给你A,B和n的值,你需要计算 f(n) 的值。输入:输入包括大量组测试。每组测试包括三个整数:A,B和n,并且在一行。输入数据为三个0时结束输入并且不会被读入。输出:对于每组测试,单行输出f(n)的值。...

2022-01-19 19:51:29 69

翻译 翻译(2)

题目:Let the Balloon Rise | JXNUOJ翻译:描述:又到了比赛的时候!看见漂浮在附近的气球是多兴奋啊。但是告诉你一个秘密,评委最喜欢干的事是猜测最受欢迎的题目。比赛结束之后,他们会统计分布的每个颜色的气球的个数并且找到答案。今年他们决定把这个可爱的工作交给你。输入:输入包括多组测试。每组测试从数字N(0 < N <= 1000)开始,N为气球的总数。接下来N行每行一个颜色。气球的颜色是一个字符串,由最高十五位的小写字母组成。若测试个数为0,将停止读入,并且

2022-01-18 18:36:37 107

翻译 翻译(1)

题目:Max Sum | JXNUOJ翻译:<动态规划>描述:给你一个数组 a[1],a[2],a[3]......a[n],你的目标是计算出这个数列的子数列的最大的和。比如,给你 (6,-1,5,4,-7),它的最大的和:6 + (-1) + 5 + 4 = 14。输入:第一行的输入包含一个整数T(1<=T<=20),即测试的组数。接下来的T行,每行第一个数为N(1<=N<=100000),即数列元素的个数,其后接着N个整数,范围都在-1000~1000.

2022-01-17 16:36:44 68

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除