摘要: float,double 可以 % 阅读全文
posted @ 2014-08-12 22:05 anjsxz 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 类是模块的属性 阅读全文
posted @ 2014-08-12 17:28 anjsxz 阅读(76) 评论(0) 推荐(0) 编辑
摘要: __future____name__sys.pathfrom * 只复制__all__中列出的,排除_X顶层程序文件执行时__name__ = “__main__"动态载入modulemo 阅读全文
posted @ 2014-08-12 17:13 anjsxz 阅读(78) 评论(0) 推荐(0) 编辑
摘要: __init__.py 阅读全文
posted @ 2014-08-12 17:06 anjsxz 阅读(69) 评论(0) 推荐(0) 编辑
摘要: import from 也是可行行语句 阅读全文
posted @ 2014-08-12 17:04 anjsxz 阅读(97) 评论(0) 推荐(0) 编辑
摘要: import :1 找到模块文件2.编译成位码3.执行代码创建定义的对象eggs distutils 阅读全文
posted @ 2014-08-12 16:59 anjsxz 阅读(109) 评论(0) 推荐(0) 编辑
摘要: map 和列表解析是在解释器中以C语方的速度运行的 阅读全文
posted @ 2014-08-12 16:53 anjsxz 阅读(97) 评论(0) 推荐(0) 编辑
摘要: == 阅读全文
posted @ 2014-08-12 16:50 anjsxz 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 不可变参数 值传递可变 指针传递 阅读全文
posted @ 2014-08-12 16:41 anjsxz 阅读(88) 评论(0) 推荐(0) 编辑
摘要: import builtinsnonlocal 略过本地作用域全局作用域仅限单个文件 阅读全文
posted @ 2014-08-12 16:36 anjsxz 阅读(116) 评论(0) 推荐(0) 编辑
摘要: def是可执行代码 运行时才存在def创建了一个对象并赋值给一变量名yield向调用者发回一个结果对象,但记住它离开的地方global声明了一个模块能的变量并赋值 阅读全文
posted @ 2014-08-12 16:32 anjsxz 阅读(78) 评论(0) 推荐(0) 编辑
摘要: dir()__doc__help() pydocmodule.class,method.__doc__ 阅读全文
posted @ 2014-08-12 16:22 anjsxz 阅读(72) 评论(0) 推荐(0) 编辑
摘要: == 阅读全文
posted @ 2014-08-12 12:01 anjsxz 阅读(95) 评论(0) 推荐(0) 编辑
摘要: -- 阅读全文
posted @ 2014-08-12 12:00 anjsxz 阅读(82) 评论(0) 推荐(0) 编辑
摘要: __init__ 构造函数__del__ 析构函数__add____sub____or____repr__,__str____call____getattr____setattr____delattr____getattribute____getitem____setitem____delitem____len____bool____lt__,__gt____le__,__ge__,__r... 阅读全文
posted @ 2014-08-12 11:59 anjsxz 阅读(134) 评论(0) 推荐(0) 编辑
摘要: == 阅读全文
posted @ 2014-08-12 11:52 anjsxz 阅读(71) 评论(0) 推荐(0) 编辑
摘要: 嵌入扩展 阅读全文
posted @ 2014-08-12 11:51 anjsxz 阅读(69) 评论(0) 推荐(0) 编辑
摘要: with/as 环境管理器 阅读全文
posted @ 2014-08-12 11:47 anjsxz 阅读(69) 评论(0) 推荐(0) 编辑
摘要: try:except:else:finally: 阅读全文
posted @ 2014-08-12 11:45 anjsxz 阅读(71) 评论(0) 推荐(0) 编辑
摘要: import exceptions 阅读全文
posted @ 2014-08-12 11:42 anjsxz 阅读(89) 评论(0) 推荐(0) 编辑