#-*- coding:UTF-8 -*-#-*- author:Zahoor Wang
-*-import codecs, os, sys, platform, stringdef env():return platform.system()def
read_file(uri, charset =...
分类:
编程语言 时间:
2014-05-16 04:30:50
阅读次数:
306
Hello World //HelloWorld.java文件 public class
HelloWorld { public static void main(String[] args) { System.out.println(“Hello
World!”); } } 编译运行 javac ...
分类:
编程语言 时间:
2014-05-16 04:11:27
阅读次数:
306
我们知道队列
就是在内容内存分配连续的内存空间,实现先进先出的逻辑,FIFO(LILO),这里用到了.net 4.0
的ConcurrentQueue类,(带线程安全的队列类),也可以用Queue ,多线程中自行同步。代码可直接复制运行 1 using System; 2
using System....
分类:
其他好文 时间:
2014-05-16 04:07:11
阅读次数:
276
1. 装箱是将值类型转换为 object 类型或由此值类型实现的任何接口类型的过程。装箱是隐式的。当
CLR 对值类型进行装箱时,会将该值包装到 System.Object 内部,再将后者存储在托管堆上。装箱和取消装箱的概念是类型系统 C#
统一视图的基础,其中任一类型的值都被视为一个对象。2. 拆...
分类:
其他好文 时间:
2014-05-16 03:53:13
阅读次数:
220
很久前写的一个简单邮件发送类分享给大家: 1 using System; 2 using
System.Data; 3 using System.Configuration; 4 using System.Web; 5 using
System.Web.Security; 6 using Syste...
分类:
Web程序 时间:
2014-05-15 14:35:44
阅读次数:
387
重启交换机,按住mode键。flash_initswitch:dirflash:switch:renameflash:config.textflash:config.oldswitch:bootWouldyouliketoentertheinitialconfigurationdialog?[yes/no]:noSwitch>enSwitch#renameflash:config.oldflash:config.textDestinationfilename[config.text]..
分类:
其他好文 时间:
2014-05-15 12:46:02
阅读次数:
279
1. 在web.config文件中的<system.web>加入以下设置2.
添加一个页面,页面名称为Defalut.aspx在后台Defalut.aspx.cs页面写以下代码:protected void
Page_Load(object sender, EventArgs e){ AjaxPr....
分类:
Web程序 时间:
2014-05-15 12:04:12
阅读次数:
264
String s="32"; int i=Integer.parseInt(s);
System.out.println(i);这样没有问题 String s="3g"; int i=Integer.parseInt(s); Sy...
分类:
其他好文 时间:
2014-05-15 09:23:50
阅读次数:
234
using System;using System.Collections.Generic;using
System.Linq;using System.Text;namespace MegreSort{ class Program { static void
Main(s...
分类:
其他好文 时间:
2014-05-15 09:21:59
阅读次数:
171
做乙方的,免不了一个月去客户那里巡检一次。无非就是翻翻日志,排排错啥的。直接说场景需求吧:每月一次翻日志(三十天内),范围是application和system(也许更多),事件类型只看Error和Warning。多日志名环境,使用WMIobject来干,-filter后面接的语句是WQL标准,运算符按..
分类:
其他好文 时间:
2014-05-15 08:52:42
阅读次数:
1243