摘要: 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) 编辑