摘要: 在java中,处理XML用jdom挺好用的。 在C#中,有类似的类,而不需要用Navigator: 阅读全文
posted @ 2010-10-02 20:42 irischan 阅读(316) 评论(1) 推荐(1) 编辑
摘要: C#://splitString strline=sr.ReadLine();String[] strHeaderCol=strline.Split('\t');//read lineswhile(true){ strline=sr.ReadLine(); if(String.IsNullOrEmpty(strline)) { break; } else { … }}sr.Close(); 阅读全文
posted @ 2010-10-02 14:28 irischan 阅读(342) 评论(0) 推荐(0) 编辑
摘要: aptana3的默认背景颜色是黑色,字体是白色。在windows- >preferences的general、python里边改了好久都没结果。原来preferences下边有aptana菜单。里边有主题选择,选其他,就可以改变背景颜色了。 直接用apatana Studio好过在eclipse装插件。把插件下载下来后,死活装不上。无奈那个myeclipse8都不知道怎么装插件的,没有一次... 阅读全文
posted @ 2010-09-22 03:05 irischan 阅读(9083) 评论(0) 推荐(0) 编辑
摘要: 1. defining modules A module is a file containing Python definitions and statements. The file name is the module name with the suffix .py appended. Within a module, the module’s name (as a string) is... 阅读全文
posted @ 2010-09-21 16:36 irischan 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 1. if There can be zero or more elif parts, and the else part is optional. The keyword ‘elif‘ is short for ‘else if’ 2. for 3. range() To iterate over the indices of a sequence, you can combine rang... 阅读全文
posted @ 2010-09-21 15:56 irischan 阅读(358) 评论(0) 推荐(0) 编辑
摘要: python3.1似乎和以前的2.X版本不同了。至少 print ‘hello world’被认为是语法错误,而要写成函数形式—— print(“hello world”) 1. Comments in Python start with the hash character, #, and extend to the end of the physical line. A hash chara... 阅读全文
posted @ 2010-09-21 14:23 irischan 阅读(652) 评论(0) 推荐(0) 编辑
摘要: reference: http://blog.163.com/spring_gwn/blog/static/866940020103304420796/ http://itgroup.blueshop.com.tw/choubogu/System?n=convew&i=3051   char转化为byte:     public static ... 阅读全文
posted @ 2010-09-21 03:19 irischan 阅读(52662) 评论(2) 推荐(0) 编辑
摘要: 搜索这个问题很费时间。我的问题跟这位作者一样: http://blog.csdn.net/hdzdw/archive/2008/10/26/3152807.aspx private void button1_Click(object sender, EventArgs e)         { try   ... 阅读全文
posted @ 2010-09-21 01:16 irischan 阅读(6647) 评论(2) 推荐(2) 编辑
摘要: 《精通Javascript》 Chap 1 1. 使用命名空间保护你的库。 Chap 2 2. 引用多个变量能够指向同一对象。引用指向的只能是具体对象,而不是另一个引用;不允许多层引用。但是,在执行字符串连接操作时,结果总是一个新的字符串对象,而非源字符串的修改版本。eg1. eg2. eg3.  3. 判断传入参数类型 如果没有提供参数,类型必定为undefined。 1) typ... 阅读全文
posted @ 2010-09-20 16:59 irischan 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 一直糊里糊涂地使用C#,现在sizeof(char)才知道=2。 一查http://c.chinaitlab.com/cc/basic/200906/786125.html,发现char在C#中是UNICODE的,占2个字节。 阅读全文
posted @ 2010-09-17 02:03 irischan 阅读(6027) 评论(0) 推荐(0) 编辑