- 博客(77)
- 收藏
- 关注

原创 修改MySQL时区
更多信息:此方法为一次性的,如果要持久的改变,需要改配置文件(可能会引起别的问题)Server version: 8.0.21 MySQL Community Server - GPL原因分析:MySQL的时区不与程序相对应,程序会报错解决方案:步骤一用命令行进入MySQL的bin目录步骤二代码1. mysql -u (MySQL账号) -p (密码)2. select curtime();3. show variables like "%time_zone%";4. set
2020-12-19 21:42:49
831
1
原创 对比学习笔记0
Supervised Contrastive Learning Contrastive Graph Poisson Networks: Semi-Supervised Learning with Extremely Limited Labels笔记
2022-06-17 20:37:16
692
原创 使用yolov5-5.0遇到的问题和总结
https://github.com/ultralytics/yolov5/issuesgithub上的模型的使用使用 看README.md以及参数后面的help说明 根据自身的需求对 程序的中参数进行设置 parser.add_argument('--img-size', type=int, default=640, help='inference size (pixels)')关于parser.add_argument()的required==True
2022-05-13 09:34:56
2285
原创 关于pyGCN的理解
文章目录代码数据集CORAtrain.py中的参数对应的参数计算对应公式Q&A关于优化器 自适应矩估计(adaptive moment estimation)关于优化器 中的weight_decay关于误差关于seed的使用关于pyGCN中使用的损失函数训练集、验证集和测试集,代码数据集CORA组成 2708 paper 1433 features 1433个词,不包含词频小于10的词 7 laber Case_Based Geneti
2022-05-07 20:57:35
613
原创 Win10使用命令行查看cpu的温度
介绍视频链接https://www.bilibili.com/video/BV1YZ4y1H7s5/以下内容为借鉴视频和视频下的b站用户 herere284得出使用cmd命令,请用管理员权限打开$temp=gwmi msacpi_thermalzonetemperature -namespace "root/wmi"$temp.CriticalTripPoint/10-273.15 # 预警温度$temp.CurrentTemperature/10-273.15 # 当前温度例子P
2022-05-01 16:59:34
23675
原创 关于Pytorch的入门学习笔记
Dataset类继承Dataset # MyData 类 class MyData(Dataset): def __init__(self, root_dir, label_dir): self.root_dir = root_dir self.label_dir = label_dir self.path = os.path.join(self.root_dir, self.label_dir)
2022-04-24 22:09:35
1954
原创 ModuleNotFoundError: No module named ‘scipy.sparse.linalg.eigen.arpack‘; ‘scipy.sparse.linalg.eigen‘
项目场景:https://github.com/tkipf/gcn问题描述ModuleNotFoundError: No module named ‘scipy.sparse.linalg.eigen.arpack’; ‘scipy.sparse.linalg.eigen’ is not a packageC:\Users\sherlock\AppData\Local\Programs\Python\Python38\python.exe C:/Users/sherlock/source/PyCh
2022-04-13 16:23:20
10075
1
原创 数据结构 概述
绪论数据结构 逻辑结构 线性 线性表 顺序结构 顺序表 1~n 插入i个位置前 move 1 i-1 new i n ; 插入i个位置后 move 1 i new i+1 n 链式结构 单链表 双链表 循环链表 静态链表 使用数组实现 比较 存储 顺序表 运算 查找 顺序表| 增删 链表 环境 顺序表 受限线性表 队列 顺序队列
2022-04-03 12:51:20
1039
原创 LeetCode717. 1比特与2比特字符
相关信息:LeetCode链接:https://leetcode-cn.com/problems/1-bit-and-2-bit-characters/代码://作者:LeetCode-Solutionpublic boolean isOneBitCharacter(int[] bits) { int n = bits.length, i = 0; //Judge whether there is an element combined with 0 before
2022-02-20 19:11:14
614
原创 LeetCode1996. 游戏中弱角色的数量
相关信息:LeetCode链接:https://leetcode-cn.com/problems/the-number-of-weak-characters-in-the-game/代码://作者:LeetCodeSolutionimport java.util.Arrays;public class L1996 { public static void main(String[] args) { //Test int[][] properties =
2022-01-28 23:01:21
2634
原创 LeetCode2047. 句子中的有效单词数
相关信息:LeetCode链接:https://leetcode-cn.com/problems/number-of-valid-words-in-a-sentence/代码://作者:LeetCode-Solutionpublic class L2047 { public static void main(String[] args) { //Test SolutionL2047 solution2047 = new SolutionL2047();
2022-01-27 23:00:21
364
原创 LeetCode2045. 到达目的地的第二短时间
相关信息:LeetCode链接:https://leetcode-cn.com/problems/second-minimum-time-to-reach-destination/代码://作者:LeetCode-Solutionimport java.util.*;public class L2045 { public static void main(String[] args) { //Test Solution2045 solution2045
2022-01-26 22:55:26
455
原创 关于Python爬取网页返回521状况码的解决方案
项目场景:Python3.8问题描述:在这里插入代码片 原因分析:频繁爬取目标网站,导致的网址反爬虫措施解决方案:
2022-01-23 11:35:24
4545
原创 LeetCode2029. 石子游戏 IX
相关信息:LeetCode链接:https://leetcode-cn.com/problems/stone-game-ix/代码://作者:LeetCode-Solutionpublic class L2029 { public static void main(String[] args) { int[] stones = {2,3,1,1,1,1};//{5, 1, 2, 4, 3}; Solution2029 solution2029 = new
2022-01-21 00:01:31
2477
原创 LeetCode219. 存在重复元素 II
相关信息:LeetCode链接:https://leetcode-cn.com/problems/contains-duplicate-ii/代码://作者:LeetCode-Solutionimport java.util.HashMap;import java.util.Map;public class L221 { public static void main(String[] args) { //Test int[] nums = {1, 2, 3
2022-01-19 20:47:41
406
原创 LeetCode面试题 17.18. 最短超串
相关信息:LeetCode链接:https://leetcode-cn.com/problems/count-vowels-permutation/代码:public class L1220 { public static void main(String[] args) { //Test SolutionL1220 solutionL1220 = new SolutionL1220(); int ans = solutionL1220.countV
2022-01-18 22:16:12
450
原创 LeetCode1220. 统计元音字母序列的数目
相关信息:LeetCode链接:https://leetcode-cn.com/problems/count-vowels-permutation/代码:public class L1220 { public static void main(String[] args) { //Test SolutionL1220 solutionL1220 = new SolutionL1220(); int ans = solutionL1220.countV
2022-01-17 22:33:33
197
原创 关于使用Python中re库相关的正则表达式的匹配问题
项目场景:python3.8问题描述:对于python使用正则表达式获取html中内容#处理文本 width="215" height="135" alt="海南美食-吴小胖海鲜加工店(第一市场店)"></a>#抓取内容:吴小胖海鲜加工店(第一市场店)#正则表达式封装findTitle = re.compile(r'alt="(.*?)"</a>') #不可以匹配处理findTitle = re.compile(r'alt="(.*?)"') #可以匹配处理
2022-01-15 12:00:33
311
原创 关于C语言的指针
程序//整数类型 的变量,存放整数int j=3;//指针类型 的变量,存放整数类型变量的地址int *pointer;//将j的地址,放到变量p里面pointer=&j;//输出pointer的值,也还是j的地址cout<<pointer;//输出 以pointer的值为地址,这个地址上存储的数据cout<<*pointer;...
2021-09-09 23:15:51
76
原创 p.next=q 与 p=q 的区别
结构typedef struct node{ ElementType data; struct node *next;}ListNode, *LinkNode;区别p.data=2;q.data=3;p.next=q;//此时数据结构应该是p(data=2|next=q) q(data=3|next=NULL)p.data=2;q.data=3;p=q;//此时数据结构应该是p(data=3|next=NULL) q(data=3|next=NULL)...
2021-09-09 22:52:13
392
原创 应输入“]”
项目场景:visual studio code运行C++程序解决方案:例子,将#define MaxSize 50;改成#define MaxSize 50问题描述:原因分析:原链接
2021-08-13 23:22:29
11670
4
原创 不能将LinkNode* 类型的值分配到LinkNode* 类型的实体
项目场景:visual studio code运行C++程序解决方案:例子,将typedef struct { ElemType data; struct LinkNode *next;} LinkNode;改成typedef struct LinkNode{ ElemType data; struct LinkNode *next;} LinkNode;原因分析:可能是编译器的问题,如有确切了解可以在评论区补充。感谢!...
2021-08-13 23:15:47
2269
5
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人