git clone https://github.com/ethereum/go ethereum.git cd go ethereum && git checkout make geth //生成的geth在build/bin/geth 创建私链 1、创建文件夹来存储私链数据: mkdir pri ...
分类:
其他好文 时间:
2018-05-16 17:23:20
阅读次数:
197
参考陈牧歌在apio2018的讲课课件 cpp include include include using namespace std; typedef long long ll; ll n; int pri[4641590], cnt, phi[4641590], msh[1544665][2]; ...
分类:
其他好文 时间:
2018-05-15 10:45:21
阅读次数:
170
PRI主键约束; UNI唯一约束; MUL可以重复。 参考:http://www.cnblogs.com/licheng/archive/2010/10/16/1852938.html ...
分类:
数据库 时间:
2018-05-14 21:30:39
阅读次数:
560
属性方法的作用就是通过@property把一个方法变成一个静态属性 1 2 3 4 5 6 7 8 9 10 11 12 class Dog(object): def __init__(self,name): self.name = name @property def eat(self): pri ...
分类:
其他好文 时间:
2018-05-14 15:12:23
阅读次数:
213
# # 密码强度正则,最少6位,包括至少1个大写字母,1个小写字母,1个数字,1个特殊字符import re if re.match(r'^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{6,}$',"1aZ1-1211"): pri ...
分类:
其他好文 时间:
2018-05-13 22:59:36
阅读次数:
171
一、动态导入模块。 介绍反射机制之前我们先来看看什么是动态导入模块。这时候,有一个需求,那就是我们不知道用户要导入哪一个模块,这时候我们应该如何设计一个程序满足去导入用户输入的模块呢? 假设我们现在有一个模块test(同级目录) def printA(): print('AAAA') def pri ...
分类:
编程语言 时间:
2018-05-12 02:51:49
阅读次数:
160
/** * Copyright (C), 2017,jumore Tec. * Author: hechengwen * Version: * Date: 2018/5/4 9:23 * Description: * Others: */ public class HashMapTest { pri... ...
分类:
其他好文 时间:
2018-05-08 19:17:57
阅读次数:
127
year = int(input("输入一个年份: ")) if (year % 4) == 0: if (year % 100) == 0: if (year % 400) == 0: print("{0} 是闰年".format(year)) # 整百年能被400整除的是闰年 else: pri ...
分类:
其他好文 时间:
2018-05-08 00:49:52
阅读次数:
173
挑选一个开源的操作系统,Linux深入源码分析其进程模型,具体包含如下内容: 1.操作系统是怎么组织进程的:以下参考了文章编号1672-5913(2009)14-0027-01举的代码例子 使用了sort()调用创建进程: #include<stdio.h> main(){ pid x=0; pri ...
分类:
系统相关 时间:
2018-05-01 15:20:47
阅读次数:
236
1. 简单粗鲁的字符串拼接 运行结果: 2.% name = "abc" age = 25 #info = "the name is "+name +"\nthe age is " + str(age) info = "the name is %name \nthe age is %age" pri ...
分类:
编程语言 时间:
2018-04-29 13:26:26
阅读次数:
190