第13个位置第5个Bit :13>num[4] =>1 第四个bit 13-num[4]=5 :50 ,3-1 第三个Bit 5>num[2](3) 5-num[2]=2 ...#includeint num[45];void init(){ num[0]=1; num[1]=2; ...
分类:
其他好文 时间:
2014-07-29 11:50:46
阅读次数:
169
#coding:utf-8importConfigParserclassConf():def__init__(self,name):self.name=nameself.cp=ConfigParser.ConfigParser()self.cp.read(name)defgetSections(se...
分类:
编程语言 时间:
2014-07-29 11:25:16
阅读次数:
290
查找网上解决此问题的方法多是一样的,不过今天又遇到了这样的问题。试过之后发现可行: 在C盘的WINDOWS或者你的PHP文件夹中找到php.ini 这个配置文件,然后查找一项:output_buffering将其值由原来的off改为on,重新启动Apache就ok了。 详细出处参考:http://w...
分类:
其他好文 时间:
2014-07-29 11:16:06
阅读次数:
269
# 1 - Import libraryimport pygamefrom pygame.locals import *import mathimport random# 2 - Initialize the gamepygame.init()width, height = 640, 480scre...
分类:
编程语言 时间:
2014-07-29 11:06:46
阅读次数:
643
#Card.pyimport randomclass Card: def __init__(self,suit_id,rank_id): self.rank_id = rank_id self.suit_id = suit_id if self.ran...
分类:
其他好文 时间:
2014-07-29 11:04:46
阅读次数:
263
#finalPyPong.pyimport pygame,sysclass MyBallClass(pygame.sprite.Sprite): def __init__(self,image_file,speed,location=[0,0]): pygame.sprite.S...
分类:
编程语言 时间:
2014-07-29 11:02:36
阅读次数:
404
python中包的引入,对于大型项目中都会使用到这个功能,把实现不同功能的python文件放在一起,组成不同lib库,然后在其他地方调用。 1、__init__.py基本介绍 首先看下面这个例子 例子1 #!/usr/bin/env python2.7#-*- coding:utf-8 -*-fro...
分类:
编程语言 时间:
2014-07-28 23:41:54
阅读次数:
394
Thread 1 cannot allocate new log, sequence 466Private strand flush not complete Current log# 7 seq# 465 mem# 0: /home/app/oracle/oradata/orcl/redo07.....
分类:
数据库 时间:
2014-07-28 23:38:54
阅读次数:
400
进程标识符:非负整数ID为0的进程通常是是调度进程,常被称为交换进程。该进程是内核的一部分,它并不执行任何磁盘上的程序,因此也被称为系统进程ID为1的进程是init进程,在自举过程结束时由内核调用,此进程负责在自举内核后启动一个UNIX系统,init通常读入与系统有关的初始化文件,并将系统引导到一个...
分类:
其他好文 时间:
2014-07-28 19:05:44
阅读次数:
198
#!/bin/bash
#chkconfig:35 98 01
#description:Startup Script for Oracle Databases
#/etc/rc.d/init.d/oracle
export ORACLE_BASE=/opt/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1
exp...
分类:
数据库 时间:
2014-07-28 16:59:24
阅读次数:
309