摘要:
It's quite common to have a layout like this... ...with a mymodule.py like this... ...a myothermodule.py like this... ...and a main.py like this... .. 阅读全文
posted @ 2016-11-05 22:57
小天儿
阅读(169)
评论(0)
推荐(0)
摘要:
自定义函数的特殊属性已经专门整理过一篇(Python 自定义函数的特殊属性),方法的特殊属性与其稍有不同,我们通过下面这个例子展开介绍: 实例方法的只读属性 与自定义函数的特殊属性相比,实例方法具有 __self__,__func__ 这两个函数所不具有的只读属性;此外,方法的__doc__,__n 阅读全文
posted @ 2016-11-05 22:45
小天儿
阅读(265)
评论(0)
推荐(0)
摘要:
1.SystemError: Parent module '' not loaded, cannot perform relative import 模块重名 2.TypeError: Error when calling the metaclass bases module.__init__() 阅读全文
posted @ 2016-11-05 22:37
小天儿
阅读(237)
评论(0)
推荐(0)
摘要:
一、数学运算类 二、集合类操作 三、逻辑判断 四、反射 五、IO操作 六、其他 help()--帮助信息 __import__()--没太看明白了,看到了那句“Direct use of __import__() is rare”之后就没心看下去了 apply()、buffer()、coerce() 阅读全文
posted @ 2016-11-05 16:12
小天儿
阅读(192)
评论(0)
推荐(0)