- 博客(3)
- 资源 (1)
- 收藏
- 关注
转载 Global and Local Variables
http://www.python-course.eu/python3_global_vs_local_variables.php In the following example, we want to demonstrate, how global values can be used inside the body of a function: def f(): pri
2016-06-22 15:54:59 1189
转载 A guide to Python's function decorators
Python is rich with powerful features and expressive syntax. One of my favorites is decorators. In the context of design patterns, decorators dynamically alter the functionality of a function, method
2016-06-22 15:31:25 428
转载 Python函数闭包和语法糖
作者:陈伟 链接:http://www.zhihu.com/question/25950466/answer/31731502 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 1. Python中一切皆对象 这恐怕是学习Python最有用的一句话。想必你已经知道Python中的list, tuple, dict等内置数据结构,当你执行: ali
2016-06-22 14:46:35 1288
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人