/*去掉input默认填充黄色背景*/ input:-webkit-autofill , textarea:-webkit-autofill, select:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px transparent inset ...
分类:
其他好文 时间:
2021-06-02 14:21:55
阅读次数:
0
最近有一个需求,shell终端输入^X切换到另一个登陆界面。 如何判断输入的是^加上其他字母成为要解决的问题。 查了一堆资料,发现可以这样判断: #!/bin/sh echo Please input ^X: read a echo $a if [ $a = $'\030' ];then echo ...
分类:
系统相关 时间:
2021-06-02 14:05:04
阅读次数:
0
卸载cudnn sudo rm -rf /usr/local/cuda/include/cudnn.h sudo rm -rf /usr/local/cuda/lib64/libcudnn* 卸载cuda 第一步 sudo /usr/local/cuda-10.1/bin/cuda-uninstal ...
分类:
系统相关 时间:
2021-06-02 13:55:10
阅读次数:
0
win + r 打开运行,输入%appdata% 删除npm和npm-cache文件夹 执行npm cache clean --force命令 此时应该就可以了,如果还不行,就执行卸载Node.js重新安装。 如果还是不行!! 换yarn 安装yarn npm install -g yarn yar ...
分类:
移动开发 时间:
2021-06-02 13:47:57
阅读次数:
0
Start Name Server > nohup sh bin/mqnamesrv & > tail -f ~/logs/rocketmqlogs/namesrv.log The Name Server boot success... 1、先启动NameServer: 在bin下执行: nohup ...
分类:
其他好文 时间:
2021-06-02 13:47:34
阅读次数:
0
1. 扩展维度 要将一个二维的数据扩展为三维: 1 print("扩展之前:", img_Y_blur.shape) 2 img_Y_blur = np.expand_dims(img_Y_blur, 2) 3 print("扩展之后:", img_Y_blur.shape) 运行结果: 扩展之前: ...
分类:
编程语言 时间:
2021-06-02 13:39:07
阅读次数:
0
更多 react-router提供了三种方式来实现路由,并没有默认的路由,需要在声明路由的时候,显式指定所使用的路由。 //v1.x <Router/> //v2.0.0 // hash history import { hashHistory } from 'react-router' <Rout ...
分类:
其他好文 时间:
2021-06-02 13:31:44
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-02 13:29:18
阅读次数:
0
List<Obj> test= objList.stream().filter(s -> s.getLicence() != null && s.getLicence().equals(obj.getLicence())).collect(Collectors.<Obj>toList()); ...
分类:
编程语言 时间:
2021-06-02 13:19:18
阅读次数:
0
统计矩阵center中重复的行的个数: [C,~,n]=unique(center,'rows'); s=sum(bsxfun(@eq,n,unique(n)')); unique函数的作用是去除掉重复的行,C为center去掉重复行之后剩余的矩阵,s为行向量,s某一位置的值代表C对应行在cente ...
分类:
其他好文 时间:
2021-06-02 13:18:02
阅读次数:
0