摘要: Traceback (most recent call last): File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5.2\helpers\pydev\pydevd.py", line 2357, in glob 阅读全文
posted @ 2016-12-10 23:19 autoria 阅读(448) 评论(0) 推荐(0)
摘要: This function returns a list of tuples, where the i-th tuple contains the i-th element from each of the argument sequences or iterables. The returned 阅读全文
posted @ 2016-12-10 20:24 autoria 阅读(266) 评论(0) 推荐(0)
摘要: 虽然可以通过元组实现相关的功能,但是因为实际中的使用需求,最终实现了装饰器。 刚开始python仅仅支持@staticmethod一类的装饰器,后来才觉得应该广泛地支持decorator,@这个符号一开始参考自java annotation,Barry Warsaw 称之为pie-decorator 阅读全文
posted @ 2016-12-10 20:23 autoria 阅读(285) 评论(0) 推荐(0)
摘要: 类也是对象,但是类有创建对象的能力 动态创建一个类: type的语法:type(类名, 父类的元组(针对继承的情况,可以为空),包含属性的字典(名称和值)) type的语法:type(类名, 父类的元组(针对继承的情况,可以为空),包含属性的字典(名称和值)) 创建类的就是元类,type是所有类的元 阅读全文
posted @ 2016-12-10 13:31 autoria 阅读(809) 评论(0) 推荐(0)