随笔分类 -  Python

摘要:开始关注Python,在论坛中发现这么好的库,收藏了先,以备后用Graphical interface wxPythonhttp://wxpython.org Graphical interface pyGtkhttp://www.pygtk.org Graphical interface pyQThttp://www.riverbankcomputing.co.uk/pyqt/ Graphical interface Pmwhttp://pmw.sourceforge.net/ Graphical interface Tkinter 3000http://effbot.org/zone/wc 阅读全文
posted @ 2012-01-05 00:43 Fooving 阅读(686) 评论(0) 推荐(1)
摘要:python的模块---最高级的程序组织单位。 import 允许客户按整体取得一个模块 from 允许客户从一个模块中取得某些特定的名字 reload 提供了一种无需停止python就可以重载模块代码的方法为什么要使用模块? 1、代码重用。 2、系统名字空间的划分。是组织系统组件的工具。 3、实现服务或数据的共享。只要一个模块,就可以被多个客户导入。模块基础 生成模块的形式:python文件,C扩展程序,很多python的内置工具事实上都是导入的C扩展模块。 使用模块:import,from,reload() 模块查找路径:PYTHONPATH定义 模块文件以.... 阅读全文
posted @ 2011-11-23 02:40 Fooving 阅读(1698) 评论(0) 推荐(1)