先看看python类的类变量和成员变量。见下面代码:
class TestClass(object):
val1 = 100
def __init__(self):
self.val2 = 200
def fcn(self,val = 400):
val3 = 300
self.val4 = val...
分类:
编程语言 时间:
2014-08-22 16:19:09
阅读次数:
193
9.1、Filter API
过滤器中使用的接口包括Filter、FilterConfig和FilterChain
过滤器类必须实现javax.servlet.Filter接口。这个接口提供了3个方法:init、doFilter和destroy。
当过滤器启动服务时,比如应用程序启动时,Servlet容器就会调用init方法。这个方法只调用一次,并且应该包含过滤器的初始化代码。签名如下:
...
分类:
其他好文 时间:
2014-08-22 14:28:08
阅读次数:
179
下面我们将:一)更加完整的解释Graphics类二)使用方法来更清晰的重新编写前面图形小应用程序之一三)介绍一些其他的绘图的方法四)介绍方法init,它是类似于paint但是用于不同用途的另一个小应用程序方法Graphics类它的对象表示屏幕上的一块区域,当比这一说法包含更多的内容。这样的对象拥有让...
分类:
编程语言 时间:
2014-08-22 12:31:56
阅读次数:
194
I'm not yet clear what I did, but I'm blogging it so it can be found if someone else has this issue.For whatever reason, last week both of my Vista 64...
安装GI,在执行root.sh时报错:Disk Group CRSDG creation failed with the following message:ORA-15018: diskgroup cannot be createdORA-15017: diskgroup "CRSDG" cann...
分类:
数据库 时间:
2014-08-22 01:34:15
阅读次数:
656
//来自潘神的优化
#include
#include
#include
using namespace std;
#define inf 0x3fffffff
#define N 1100
struct node {
int u,v,w,next;
}bian[N*N*4];
int head[N],yong,dis[N],work[N];
void init(){
yong=0;
memset...
分类:
其他好文 时间:
2014-08-21 21:13:14
阅读次数:
238
#-*-coding:utf-8-*-#python:2.x__author__='Administrator'#当使用多重继承层次结构时,再使用super的时候是非常危险的,主要是因为类的初始化,基类不在__init__中被隐式调用#1滥用super和传统调用#来自jamesknight(http...
分类:
编程语言 时间:
2014-08-21 21:01:54
阅读次数:
257
关于CRS自动重启实验
一.检查ASM
[root@rac1 ~]# /etc/init.d/oracleasm status
Checking if ASM is loaded: yes
Checking if /dev/oracleasm is mounted: yes
[root@rac1 ~]# /etc/init.d/oracleasm listdisks
ASM01...
分类:
其他好文 时间:
2014-08-21 17:17:24
阅读次数:
315
遇到问题:
第一次从外部文件导入HelloWorld工程到workspace目录中,成功。
删除后,再次从外部导入workspace目录提示 Some projects cannot be imported because they already exist in the workspace
eclipse中删除HelloWorld工程时没有勾选Delete pr...
分类:
系统相关 时间:
2014-08-21 17:10:34
阅读次数:
218
Android为不同类型的进程分配了不同的内存使用上限,如果应用进程使用的内存超过了这个上限,则会被系统视为内存泄漏,从而被kill掉。Android为应用进程分配的内存上限如下所示:位置: /ANDROID_SOURCE/system/core/rootdir/init.rc 部分脚本# Defi...
分类:
其他好文 时间:
2014-08-21 16:49:14
阅读次数:
194