deb是debian linus的安装格式,跟red hat的rpm非常相似,最基本的安装命令是:dpkg -i file.debdpkg 是Debian Package的简写,是为Debian 专门开发的套件管理系统,方便软件的安装、更新及移除。所有源自Debian的Linux发行版都使用dpkg...
分类:
其他好文 时间:
2014-06-28 22:23:17
阅读次数:
255
15.1 枚举类型枚举类型定义了一组“符号名称/值”配对。例如,以下Color类型定义了一组符合,每个符号表示一种颜色。internal enum Color{ White, //赋值0 Red, //赋值1 Green, //赋值2 Blue, //赋值3 Or...
分类:
其他好文 时间:
2014-06-23 07:20:33
阅读次数:
203
Hat’s Words
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 7298 Accepted Submission(s): 2644
Problem Description
A hat’s word is a ...
分类:
其他好文 时间:
2014-06-22 16:35:53
阅读次数:
179
一、安装tkinter在Linux中python默认是不安装Tkinter模块,[root@li250-193 ~]# pythonPython 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) [GCC 4.4.7 20120313 (Red Hat 4.4.7-...
分类:
编程语言 时间:
2014-06-21 08:57:04
阅读次数:
284
判断如下程序的最终输出值: import java.util.*;public class Quest{ public static void main(String[] args){ String[] colors = {"blue", "red", "green", "yellow", "ora...
分类:
其他好文 时间:
2014-06-20 15:07:00
阅读次数:
174
ResolutionRed Hat Enterprise Linux 4, 5 and 6 enable Internet Protocol Version 6 (IPv6) by default. However, in certain situations, some users may fin...
分类:
系统相关 时间:
2014-06-18 20:24:54
阅读次数:
520
Source Database
DB Name: zwc
Schemas: HR,OE,PM
Version: 10.2.0.4
RAC: No
OS Version: Red Hat Enterprise Linux Server release 5.9 x86_64
OGG...
分类:
数据库 时间:
2014-06-18 12:09:56
阅读次数:
617
原题如下,意思就是说无序数组(由0,1,2组成),一遍扫描,把数组整理成0,1,2这样的序列。
Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red,...
分类:
其他好文 时间:
2014-06-18 07:12:43
阅读次数:
174
二、mod_python
1.性能
使用mod_python的主要优势在于比传统CGI更高的性能。
一个测试,使用在Pentium
1.2GHz的机器上运行Red Hat Linux 7.3。使用4种类型的脚本,基于标准的CGI导入模块(以典型的Python
CGI脚本开始),然后输出'Hello!',测试10000次请求作为基准。
标准CGI:...
分类:
编程语言 时间:
2014-06-18 00:31:40
阅读次数:
408
除了不能继承enum之外,可将其看做一个常规类。甚至可以有main方法。
注意:必须先定义enum实例,实例的最后有一个分号。
下面是一个例子:返回对实例自身的描述,而非默认的toString返回枚举实例的名字。
public enum Color {
RED("红色", 1), GREEN("绿色", 2), BLANK("白色", 3), YELLO("黄色", 4);...
分类:
编程语言 时间:
2014-06-17 16:18:31
阅读次数:
482