整数求和 package nihao;import java.util.Scanner;public class sum {public static void main(String[] args) {System.out.print("请输入第一个整数:");Scanner s=new Scan ...
分类:
其他好文 时间:
2016-04-17 17:25:38
阅读次数:
134
灰度处理的方法主要有如下3种: 1、最大值法:使R、G、B的值等于3值中最大的一个,即: R=G=B=max(R,G,B) 最大值法会使形成高亮度很高的灰度图象 [delphi] view plain copy print? var bitmap:tbitmap; i,j:integer; a,b, ...
[delphi] view plain copy print? unit Unit1; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrl ...
分类:
其他好文 时间:
2016-04-17 07:59:16
阅读次数:
208
[delphi] view plain copy print? unit AdoconnectPool; interface uses Classes, Windows, SysUtils, ADODB, IniFiles, forms; type TADOConnectionPool = clas ...
分类:
数据库 时间:
2016-04-17 07:57:52
阅读次数:
459
一,脚本#!/bin/shDIR=/data/ascenlink/logs#T=`find$DRI/*-typef-mtime+365`#rm-rf$TI=$(df-h|grep-vdata2|awk‘/data/{gsub("‘%‘","");print$4}‘)if[$I-gt95];thenmv$DIR/*.tar.gz/data2/backuplogecho"NoenoughFreeDiskSpaceforbackup">>/home/ascenlink/backuperror.l..
分类:
系统相关 时间:
2016-04-17 00:54:11
阅读次数:
333
Class类的使用 OOP的世界里,万事万物皆对象。类是谁的对象呢?——类是对象,类是java.lang.Class类的实例对象!There is a class named class. 实例: //有一个类 class Foo { void print() {System.out.println ...
分类:
编程语言 时间:
2016-04-16 21:14:59
阅读次数:
221
今天介绍一下在Mac的终端中一些常用的Shell命令: 1.查看当前工作目录的完整路径 pwd (pwd的原意是:print work directiory,而不是密码password的意思,呵呵) 2.查看命令的详细帮助man 命令名比如要看看 pwd 命令的详细用法,执行 man pwd 3.列 ...
分类:
系统相关 时间:
2016-04-16 21:05:33
阅读次数:
188
这是一个类似于win下面的cmd打开后的窗口,可以跨平台使用,可以在win和linux下面同时使用,主要功能如下:
首先我们需要把这些功能的目录写出来,通过写一个死循环,让其每次回车之后都可以保持同样的标题:如,/home/admin1>:
[java] view
plain copy
print?
"white-space:...
分类:
系统相关 时间:
2016-04-16 19:05:22
阅读次数:
338
enumerate 函数用于遍历序列中的元素以及它们的下标: >>> for i,j in enumerate(('a','b','c')): print i,j 0 a 1 b 2 c >>> for i,j in enumerate([1,2,3]): print i,j 0 1 1 2 2 3 ...
分类:
编程语言 时间:
2016-04-16 18:19:06
阅读次数:
154
PHP中字符串的连接使用点,不是加号。换行\n需要用双引号括起来,不能用单引号。 eg. <?php print_r("hello"."\n"); print_r("world"."\n"); print_r('hello'.'world'."\n"); ?> 结果: hello world hel ...
分类:
Web程序 时间:
2016-04-16 00:41:45
阅读次数:
124