参考:https://juejin.im/post/5d5374076fb9a06ac76da894#heading-8 synchronized,是解决并发情况下数据同步访问问题的一把利刃,也是面试经常闻到的一个知识点。那么synchronized的底层原理是什么呢? Synchronized的使 ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 00:22:44   
                                阅读次数:
78
                             
                         
                    
                        
                            
                            
                                    题目描述 Roundgod is given n,k,construct a permutation P of 1~n satisfying that for all integers i in [1,n],there exists a contiguous subarray in P of len ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 00:18:40   
                                阅读次数:
75
                             
                         
                    
                        
                            
                            
                                数据准备: drop table if exists t1; /* 如果表t1存在则删除表t1 */ CREATE TABLE `t1` ( `id` int(11) NOT NULL AUTO_INCREMENT, `a` int(11) DEFAULT NULL, `b` int(11) NOT ...
                            
                            
                                分类:
其他好文   时间:
2020-07-28 00:03:44   
                                阅读次数:
96
                             
                         
                    
                        
                            
                            
                                    最近项目在用mysql语句 指定非空,默认值为空字符串 NOT NULL DEFAULT '' 建表 CREATE TABLE IF NOT EXISTS `ims_test` ( `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT ,`sid` int(11 ...
                            
                            
                                分类:
数据库   时间:
2020-07-27 23:47:51   
                                阅读次数:
81
                             
                         
                    
                        
                            
                            
                                一、单个键管理针对单个键的命令,有type、del、object,exists,expire等,下面介绍几个重要的键的重命名Renamekeynewkey192.168.1.10:6379>setpythonjedisOK192.168.1.10:6379>getpython"jedis"192.168.1.10:6379>renamepythonjavaOK192.168.1.
                            
                            
                                分类:
其他好文   时间:
2020-07-27 10:01:46   
                                阅读次数:
84
                             
                         
                    
                        
                            
                            
                                    原因一:找到错误点,增加以下语句: with torch.no_grad(): outputs = Net_(inputs) 错误代码的位置。 原因二:GPU没有选对 os.environ["CUDA_VISIBLE_DEVICES"] = "0, 2, 3" 查看性能,发现nVidia的只有GPU ...
                            
                            
                                分类:
其他好文   时间:
2020-07-26 22:55:56   
                                阅读次数:
297
                             
                         
                    
                        
                            
                            
                                    原文地址: https://blog.csdn.net/xiushuiguande/article/details/79476964 实验数据 CREATE DATABASE IF NOT EXISTS SQL50; USE SQL50; CREATE TABLE Student(sid VARCH ...
                            
                            
                                分类:
数据库   时间:
2020-07-26 19:39:24   
                                阅读次数:
86
                             
                         
                    
                        
                            
                            
                                    解决goland module代理无法访问 问题如下 D:\project\demo1\main>go run main.go go: finding module for package github.com/sirupsen/logrus main.go:4:2: module github.c ...
                            
                            
                                分类:
其他好文   时间:
2020-07-26 02:07:34   
                                阅读次数:
151
                             
                         
                    
                        
                            
                            
                                    避免中文乱码 redis-cli --raw(但是这样会不显示前面的序号) 设置一个key :set name gsl 获取key: get name 判断是否存在key: EXISTS name 查看所有key: keys * 移动元素到指定的库:move phone 2 (移动phone到第二个 ...
                            
                            
                                分类:
其他好文   时间:
2020-07-26 01:03:06   
                                阅读次数:
59
                             
                         
                    
                        
                            
                            
                                    1.为什么使用小表驱动大表 小表驱动大表,小的数据集驱动大的数据集 因为连接比较消耗时间 所以,小表写在先查询的地方 select * from employee where id in (select id from department) 2.exists select * from emplo ...
                            
                            
                                分类:
其他好文   时间:
2020-07-26 00:48:54   
                                阅读次数:
72