04 2017 档案
摘要:\>tasklist /m explorer*映像名称 PID 模块 explorer.exe 4092 EXPLORERFRAME.dll iexplore.exe 7384 explorerframe.dll OUTLOOK.EXE 8572 explorerframe.dll \>taskli
阅读全文
摘要:D:\learnProg\Ruby>irb#浮点数转换成整数,会强行去掉小数点后面的数字 irb(main):017:0> 123.45.to_i => 123 #整数转换成浮点数,会添加小数点和0 irb(main):018:0> 123.to_f => 123.0 #整数转换成字符串 irb(m
阅读全文
摘要:ruby1.9以上,retry只能支持在rescue里面使用,不支持在block里面用;你要去用ruby1.8 rescue使用代码例子 Trying to do somethingoops:0!!!!!!Trying to do somethingoops:1!!!!!!Trying to do
阅读全文
摘要:Ruby 演示break 1a 2b; end 演示next 1a 3b 4b 演示redo 1a 2b 3b 4b Output completed (0 sec consumed) - Normal Termination
阅读全文
摘要:#!/usr/bin/ruby -w# -*- coding: UTF-8 -*-for i in 1..5 print i," "endprint "\n"for i in 1...5 print i," "end##1 2 3 4 5 #1 2 3 4 #
阅读全文
摘要:关机计算机:shutdown.exe -s -t 00重启计算机:shutdown.exe -r -t 00注销计算机:shutdown.exe -l -t 00锁定计算机:rundll32.exe user32.dll,LockWorkStation休眠计算机:rundll32.exe powrP
阅读全文
摘要:{ class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private...
阅读全文
摘要:{ class clsA { private int _i; public int I { set { _i = value; } get { return _i; } } } struct strctB { private...
阅读全文
摘要:class Program { static void Main(string[] args) { int i = 2,j = 2; bool a = Object.Equals(i, j); bool b = Object.ReferenceEquals(i, j); ...
阅读全文
摘要:private static int CalcIntegerLength(int iLen) { //String str_iLen = Convert.ToString(iLen); int strLen = 0;// str_iLen.Length; do { ...
阅读全文
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; namespace ReadIniTest { class Class1 { [DllImport("kernel3...
阅读全文