#汉字数字转阿拉伯数字 1 class ConvertNum: 2 def __init__(self,cnNum): 3 self.dict = {u'零':0,u'一':1,u'二':2,u'三':3,u'四':4,u'五':5,u'六':6,u'七':7,u'八':8,...
分类:
编程语言 时间:
2014-08-11 17:08:02
阅读次数:
451
openvswich进程重启的问题,如果只是单纯重启openvswich和neutron-openvswitch-agent进程,会引起被重启的宿主机上的所有的虚拟机否无法通信,重启openvswich进程后必须初始化ovsdb数据库,按下面顺序重启即可。1、重启openvswich进程/etc/init.d/openvswitchrestart2、初始化o..
分类:
其他好文 时间:
2014-08-11 12:12:22
阅读次数:
241
PHP严重致命错误处理:php ?Fatal error: Cannot redeclare class or function 1、错误类型:PHP致命错误 Error type: PHP Fatal error Fatal error: Cannot redeclare (a) (previously declared in (b)) in (c) ...
分类:
Web程序 时间:
2014-08-11 03:11:11
阅读次数:
375
- (NSString *)getCarrier { NSString *strCarrier = nil; CTTelephonyNetworkInfo *networkInfo = [[CTTelephonyNetworkInfo alloc] init]; CT...
分类:
其他好文 时间:
2014-08-11 00:09:31
阅读次数:
294
//1481#include #include using namespace std;#define N 50010int parent[N],sum;void init(){ for(int i=1;in || y> n) {sum--;continue;} ...
分类:
其他好文 时间:
2014-08-10 21:29:30
阅读次数:
294
const int MAX=1010; //元素个数的最大值,根据题目修改int p[MAX];void init(int n) //n为实有元素个数{ for (int i=1; i<=n; i++) p[i]=i; }int find(int x) //查找{ if (x==p[x]) retu...
分类:
其他好文 时间:
2014-08-10 21:21:50
阅读次数:
258
#include #includeusing namespace std;#define N 50010int p[N]; void init(int n){ for(int i=1 ;i#include #include #include #include #include using name....
分类:
其他好文 时间:
2014-08-10 21:18:50
阅读次数:
324
// hnldyhy(303882171) 17:07:57// poj 1703#include int p[200005];void init(int n){ for (int i=1;i#includeusing namespace std;#define N 500001int ...
分类:
其他好文 时间:
2014-08-10 21:17:41
阅读次数:
252
//1480#includeconst int MAX=50010; int p[MAX];int n,m;void init(int k) { for (int i=1; iconst int MAX=50010;int p[MAX];int n,m;void init(int k){fo...
分类:
其他好文 时间:
2014-08-10 21:15:20
阅读次数:
206
启动的配置文件/etc/inittab,修改完配置文件以后 init q立即生效# Default runlevel. The runlevels used by RHS are:# 0 - halt (Do NOT set initdefault to this)# 1 - Single ...
分类:
系统相关 时间:
2014-08-10 18:26:10
阅读次数:
256