chown: 将文件 file1.txt 的拥有者设为 runoob,群体的使用者 runoobgroup : chown runoob:runoobgroup file1.txt chmod : 是一个计算机函数,功能是改变文件的读写许可设置 Linux/Unix 的文件调用权限分为三级 : 文件 ...
分类:
系统相关 时间:
2020-07-16 18:23:14
阅读次数:
88
#提示 Permission denied 解决的办法: sudo chmod -R 777 某一目录 chmod 777 文件名 #其中: -R 是指级联应用到目录里的所有子目录和文件 777 是所有用户都拥有最高权限 ...
分类:
其他好文 时间:
2020-07-16 18:16:02
阅读次数:
96
通过前面两篇,我想各位朋友对“面向接口编程”的思想有了一定认识,并通过第二篇的例子,获得了一定的直观印象。但是,第二篇中的例子旨在展示面向接口编程的实现方法,比较简单,不能体现出面向接口编程的优势和这种思想的内涵。那么,这一篇作为本系列的终结篇,将通过分析几个比较有深度的模式或架构,解析隐藏其背后的 ...
分类:
其他好文 时间:
2020-07-16 18:11:46
阅读次数:
69
1.区间求和 2.区间取模 3.单点修改 线段树,区间取模加一个剪枝:区间最大值<mod,不修改。其他单点取模 #include <bits/stdc++.h> using namespace std; #define debug printf("bug!!!\n"); typedef long l ...
分类:
其他好文 时间:
2020-07-16 11:50:06
阅读次数:
63
一个数最多能取8-9次根号。 #include <bits/stdc++.h> using namespace std; #define debug printf("bug!!!\n"); typedef long long ll; const int MAXN=1e5+10; const ll M ...
分类:
其他好文 时间:
2020-07-16 10:11:53
阅读次数:
74
扔硬币 题解: 1.如果\(\left ( m+k\right )> n\),那么就很明显答案为0; 2.根据条件概率:则题目就是求,在至少有\(m\)枚硬币是反面的情况下,恰好有\(k\)枚硬币是正面的概率。那么就可以设\(A\)为至少有\(m\)枚硬币是反面,\(B\)为恰好有\(k\)枚硬币是 ...
分类:
其他好文 时间:
2020-07-16 00:23:21
阅读次数:
105
Given an array, rotate the array to the right by k steps, where k is non-negative. Follow up: Try to come up as many solutions as you can, there are a ...
分类:
其他好文 时间:
2020-07-16 00:20:51
阅读次数:
49
https://www.zhihu.com/question/64671972 所以,用最简练的语言概括就是: Spring 是一个“引擎”; Spring MVC 是基于Spring的一个 MVC 框架 ; Spring Boot 是基于Spring4的条件注册的一套快速开发整合包。为了简化工作流 ...
分类:
编程语言 时间:
2020-07-16 00:05:18
阅读次数:
65
今天换机以后,原来的代码不能运行了,报错。 好像是缺少包 问题描述: 报错:ImportError: No module named MySQLdb 对于不同的系统和程序有如下的解决方法: easy_install mysql-python (mix os) pip install mysql-py ...
分类:
数据库 时间:
2020-07-15 23:41:22
阅读次数:
79
mybaits-spring 源码阅读随笔(一) 1、@MapperScan @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.TYPE) @Documented @Import(MapperScannerRegistrar.class) ...
分类:
编程语言 时间:
2020-07-15 22:47:13
阅读次数:
65