对于同伴的代码,首先我想指出一下我从同伴代码中发现的优点:代码格式比较规整,基本做到了变量名让人一看就知道其基本作用。比如'TotalCount', 'Dictionary', 'path'等变量。用了Dictionary,Regex等相关的比较高级的方法,从代码中可看出对c#掌握得比较熟练。整个程...
分类:
其他好文 时间:
2014-10-24 00:01:38
阅读次数:
328
1.在系统变量里新建JAVA_HOME变量,变量值为:C:\Program Files\Java\jdk1.6.0_14(根据自己的安装路径填写)2.在系统变量里新建CLASSPATH变量,变量值为:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar3.在Path...
分类:
其他好文 时间:
2014-10-23 23:53:36
阅读次数:
366
New Zealand currency consists of $100, $50, $20, $10, and $5 notes and $2, $1, 50c, 20c, 10c and 5c coins. Write a program that will determine, for any given amount, in how many ways that amount may b...
分类:
其他好文 时间:
2014-10-23 22:49:46
阅读次数:
247
from sys import argv from os.path import existsscript, from_file, to_file = argvprint "Copying from %s to %s" % (from_file, to_file)# we could do thes...
分类:
其他好文 时间:
2014-10-23 22:37:21
阅读次数:
324
联想:scp命令1、使用write命令,向指定用户发送信息:用户可以使用write命令给其他在线用户发送消息。格式:$write zhangsanhelloworld //通信内容按CTRL+D就将消息发送给zhangsan这个用户。在Shell提示符号输入write,username指接受发送信息...
分类:
系统相关 时间:
2014-10-23 22:31:06
阅读次数:
352
$CurrentPath = $MyInvocation.MyCommand.Path.substring(0,$MyInvocation.MyCommand.Path.LastIndexOf('\')+1)$devcon = Join-Path $CurrentPath devcon.exe#使用...
分类:
其他好文 时间:
2014-10-23 18:55:19
阅读次数:
157
普通ajax请求:$(document).ready(function() { $.ajax({ url: '/path/to/file', type: 'default GET (Other values: POST)', dataType: ...
分类:
Web程序 时间:
2014-10-23 16:11:36
阅读次数:
127
1 public HttpServletResponse download(String path, HttpServletResponse response) { 2 try { 3 // path是指欲下载的文件的路径。 4 Fi...
分类:
编程语言 时间:
2014-10-23 16:05:00
阅读次数:
155
Java调用Dll时,会出现no dll in java.library.path异常,在Java Project中不常见,因为只要将Dll拷贝到system32目录下即可; 但若是在Web Project中则经常遇见,因为Web Project引用的java.library.path 有两处...
分类:
编程语言 时间:
2014-10-23 15:50:00
阅读次数:
196
1 module handshake( 2 input clka,wra_n,da,clkb,rst, 3 output reg [7:0] db, 4 output reg wrb_n 5 ); 6 7 reg ack,temp,req1; 8 reg [7:0] data; 9 always.....
分类:
其他好文 时间:
2014-10-23 15:45:20
阅读次数:
256