2008年11月25日
摘要: python log 阅读全文
posted @ 2008-11-25 14:03 sislcb 阅读(12415) 评论(2) 推荐(0) 编辑
摘要: python log 阅读全文
posted @ 2008-11-25 13:22 sislcb 阅读(11921) 评论(1) 推荐(0) 编辑
摘要: python 线程 阅读全文
posted @ 2008-11-25 13:19 sislcb 阅读(4755) 评论(0) 推荐(1) 编辑
摘要: python ini 阅读全文
posted @ 2008-11-25 13:16 sislcb 阅读(7741) 评论(0) 推荐(0) 编辑
  2008年11月24日
摘要: python mysqldb 阅读全文
posted @ 2008-11-24 14:56 sislcb 阅读(3640) 评论(0) 推荐(0) 编辑
  2008年9月11日
摘要: 1、 Lambda 形式 通过lambda关键字,可以创建很小的匿名函数。这里有一个函数返回它的两个参数的和:“lambda a, b: a+b”。 Lambda 形式可以用于任何需要的函数对象。出于语法限制,它们只能有一个单独的表达式。语义上讲,它们只是普通函数定义中的一个语法技巧。 CodeCode highlighting produced by Actipro CodeHighlight... 阅读全文
posted @ 2008-09-11 11:59 sislcb 阅读(802) 评论(0) 推荐(1) 编辑
  2008年9月8日
摘要: 转载自:http://www.builder.com.cn/2008/0521/874673.shtml 如果一个对象A持有另一个对象B的ID,那么检索到A之后就可以检索到B,我们就说存在一个A到B的导航。这种导航关系使得Python中所有对象之间形成了一个复杂的网络结构。Python程序的运行包括:1. 修改这个网络结构;2. 执行有副作用的代码对象(code object或者说byteco... 阅读全文
posted @ 2008-09-08 09:13 sislcb 阅读(2273) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.xwy2.com/article.asp?id=125 多变量赋值 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>>>>> a = b = c = 1 >>>>>> print a, b, c ... 阅读全文
posted @ 2008-09-08 08:45 sislcb 阅读(1013) 评论(0) 推荐(0) 编辑
  2008年9月7日
摘要: 转载自:http://www.xwy2.com/article.asp?id=124 Python 的异常处理机制和 C# 类似。 CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>>>>> try: raise Except... 阅读全文
posted @ 2008-09-07 09:55 sislcb 阅读(34376) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://www.xwy2.com/article.asp?id=121 if...elif...else CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->>>>>>> def test(i): if 0>>>>> ... 阅读全文
posted @ 2008-09-07 09:53 sislcb 阅读(636) 评论(0) 推荐(0) 编辑