大家都知道汉字占用两个英文字母的长度,所以索取时要将其转换为长度2,这个例子比较简单的实现了这一功能 [html]<script language=vbs> function find1(findstr) set rep1=new regexp rep1.Global=true rep1.IgnoreCase=true rep1.Pattern="[\u4E00-\u9FA5]" set str1=rep1.Execute(findstr) for&nb...
http://www.jb51.net//article/9225.htm
一段比较经典的多线程学习代码。 1、用到了多线程的同步问题。 2、用到了多线程的顺序问题。 如果有兴趣的请仔细阅读下面的代码。注意其中代码段的顺序,思考一下,这些代码的顺序能否互相调换,为什么?这应该对学习很有帮助的。为了演示,让所有的线程都Sleep了一段时间。usingSystem.Net;usingSystem;usingSystem.IO;usingSystem.Text;usingSystem.Threading;usingSystem.Diagnostics;namespaceWebb.Study{ classTestThrea...
http://www.jb51.net//article/1266.htm
共有:2/10,当前1/1页
[首页] [上一页]
1
[下一页] [尾页]
转到:
