全部博文(626)
发布时间:2013-09-29 10:20:56
Python的GUI编程使用Tkinter模块来创建简单的GUI程序。Tkinter的Widgets有:Button、Canvas、Checkbutton、Entry、Frame、Label、Listbox、Menu、Menubutton、Message、Radiobutton、Scales、Scrollbar、TEXT、Toplevel等。例:# This program displays an empty window.import Tkinterdef main(): m.........【阅读全文】
发布时间:2013-09-29 10:19:31
Python学习笔记(8)一、递归函数调用自身,即为递归函数。例子:def main(): message()def message(): print 'This is a recursive function.' message()main()结果:This is a recursive function.This is a recursive function....... File "C:/temp/p19.py", line 5, .........【阅读全文】
发布时间:2013-09-29 10:18:56
Python学习笔记(7)一、Python的类和面向对象编程先看一个例子:inventory.py文件# The Cellphone class holds data about a cell phone.#inventory.pyclass CellPhone: def __init__(self,manufact,model,price): self.__manufact = manufact self.__model = model self.__retai.........【阅读全文】
发布时间:2013-09-29 10:18:10
嵌入式开发基础(4)一、独立处理器(Stand-alone Processor)独立处理器指专用于单个处理功能的处理器芯片。与集成处理器相比,独立处理器往往需要附加电路来完成基本操作。独立处理器通常能提供最高、最全面的CPU性能。独立处理器的例子:1、IBM 970FXIBM 970FX处理器内核是一高性能64位独立处理器。970FX是.........【阅读全文】