摘要: 修饰符基础——闭包 什么是闭包呢?标准的概念大家可以看wikipedia上的解释点击打开链接 举个例子: [python] view plain copy def do_add(base): def add(increase): return base + increase return add d 阅读全文
posted @ 2018-02-18 19:08 欧阳平 阅读(178) 评论(0) 推荐(0) 编辑
摘要: 1. @prototype修饰符的用法 另外一种用法: 2. staticmethod修饰符 被staticmethod修饰符的表示这是一个类的静态方法,可以被类直接调用 阅读全文
posted @ 2018-02-18 18:30 欧阳平 阅读(292) 评论(0) 推荐(0) 编辑
摘要: import requestsapiUrl = 'http://www.tuling123.com/openapi/api'data = { 'key' : '8edce3ce905a4c1dbb965e6b35c3834d', # 如果这个Tuling Key不能用,那就换一个 'info' : 阅读全文
posted @ 2018-02-18 14:45 欧阳平 阅读(188) 评论(0) 推荐(0) 编辑