idea 将项目托管到 Git 报错:Can't finish Gitee sharing process https://www.cnblogs.com/Nahshon/p/12800361.html can't finish gitee sharing finish 使用git config - ...
分类:
其他好文 时间:
2020-07-16 12:00:31
阅读次数:
72
Git冲突:commit your changes or stash them before you can merge. 解决办法 http://www.aikaiyuan.com/8875.html 用git pull来更新代码的时候,遇到了下面的问题: 1 2 3 4 error: Your ...
分类:
其他好文 时间:
2020-07-16 11:59:47
阅读次数:
75
常规并查集 模板 #define Maxsize 100+1 int f[Maxsize]; void init(int n){ for(int i = 1; i <= n; i++) f[i] = i; } int find_f(int a){ if(f[a] == a){ return a; } ...
分类:
其他好文 时间:
2020-07-16 11:58:56
阅读次数:
105
a_list = [ ('mac',9000), ('kindle',8000), ('tesla',6000), ('python book',105),]saving = input('输入你的钱:')shopping = []if saving.isdigit():#如果输入的为数字,转换为整 ...
分类:
其他好文 时间:
2020-07-16 11:52:13
阅读次数:
75
前言 单例模式应该是所有接触的设计模式初学者第一个听过的设计模式,这个模式应该是所有设计模式中最简单的一个模式了。值得注意的是,许多开发者将单例模式视为一种反模式,因此单例模式在 Python 中的使用频率现在越来越少了。 反模式(英文:Anti-patterns或pitfalls), 是指用来解决 ...
分类:
其他好文 时间:
2020-07-16 11:47:47
阅读次数:
55
新手搭建Git,将代码托管到码云 如果你还没有使用过Git,首先先去https://gitee.com/注册一个自己的账户,然后在https://git-scm.com/下载一个客户端(提交代码到码云的工具), 安装好客户端(默认配置,一直点击next即可,也可以选择安装的路径)和注册好账户之后,在 ...
分类:
其他好文 时间:
2020-07-16 10:16:24
阅读次数:
63
int n,a[N],st[N][20]; void init(){ rep(i,1,n) st[i][0]=a[i]; for(int j=1;(1<<j)<=n;j++){ for(int i=1;i+(1<<j)-1<=n;i++){ st[i][j]=min(st[i][j-1],st[i+ ...
分类:
其他好文 时间:
2020-07-16 00:28:50
阅读次数:
77
'''class Dog(object): def __init__(self,name): self.name = name @staticmethod#实际上跟类没有什么关系了。eat和类的关系截断了,只是类下面函数 #静态方法:只是名义上归类管理,实际上在静态方法里访问不了类或实例中的任何属性 ...
分类:
编程语言 时间:
2020-07-16 00:16:22
阅读次数:
62
std::accumulate 该函数定义于头文件 ,它主要用于累加求和和自定义数据类型的处理。 template< class InputIt, class T > constexpr T accumulate( InputIt first, InputIt last, T init ); tem ...
分类:
其他好文 时间:
2020-07-16 00:07:47
阅读次数:
69
/* // Definition for a Node. class Node { public int val; public List<Node> children; public Node() {} public Node(int _val) { val = _val; } public No ...
分类:
其他好文 时间:
2020-07-15 23:57:38
阅读次数:
89