摘要:
> 我只是技术的搬运工**简介:**对Python装饰器的一点个人理解Python之装饰器====在这里用一个简单的例子分析Python的装饰器的过程: import functools def log(func=None, logger=None): if func is... 阅读全文
posted @ 2014-11-05 14:05
C_G
阅读(169)
评论(0)
推荐(0)
摘要:
> I am not a creator, I just a porter.**Note:** Everything is object in python. 对于Python来说一切都是对象,也就是函数的参数可以传递任何你想传递的参数。在Python中整数,浮点都是对象,函数,类也是对象。这一点和... 阅读全文
posted @ 2014-11-05 14:04
C_G
阅读(421)
评论(0)
推荐(0)
摘要:
> I am not a creator. I am just a porter.**简介:**对一些python的小知识进行总结#### lambda匿名函数 #### {#lambda}---lambda函数也叫匿名函数,也就是函数没有名称。先看一个简单的例子: def add... 阅读全文
posted @ 2014-11-05 14:00
C_G
阅读(384)
评论(0)
推荐(0)