
Python
Quebradawill
关注PRMLCV,希望多交流。
展开
-
Tk Tutorial - 3. A First (Real) Example
Tk TutorialA First (Real) Example原创 2014-07-22 20:49:43 · 780 阅读 · 0 评论 -
Python导入自定义包或模块
一般我们会将自己写的 Python 模块与 Python 自带的模块分开存放以达到便于维护的目的。Python 运行环境在查找模块时是对 sys.path 列表进行遍历,如果我们想在运行环境中添加自定义的模块,主要有以下三种方法:1. 在sys.path列表中添加新的路径(只能对执行了 sys.path.append 命令的当前 Python 运行环境起作用,对其他运行环境不起作用原创 2015-02-26 13:52:35 · 2087 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python - Week three
Canvas — Canvas and drawingThe canvas is the area associated with an application where information contain in the application may be drawn.In SimpleGUI applications, the width and height of the ca转载 2014-10-08 22:29:47 · 1305 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python - Week two
Event handlers — Event-driven programmingEvent handlers (also called callbacks) are functions registered to an event such as a button click, keyboard press or mouse click.Event handlers react to t转载 2014-10-08 22:28:44 · 750 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python - Week zero
Comments — CodeSkulptorNon-computational parts of the program that textually describe the behavior of the program.Comments begin with #, everything to right of the hash is ignored by Python.Comm转载 2014-09-21 08:56:52 · 803 阅读 · 0 评论 -
An Introduction to Interactive Programming in Python - Week one
Functions — FunctionsFunctions are reusable pieces of programs that take an input and produce an output.A function definition is a compound statement consisting of a header and a body.The header i转载 2014-09-21 08:58:30 · 1018 阅读 · 0 评论 -
Tk Tutorial - 14. Tree
A treeview widget can display and allow browsing through a hierarchy of items, and can show one or more attributes of each item as columns to the right of the tree.原创 2014-07-30 17:09:27 · 707 阅读 · 0 评论 -
Tk Tutorial - 15. Styles and Themes
Definitions原创 2014-07-30 20:21:18 · 751 阅读 · 0 评论 -
Tk Tutorial - 13. Text
Text widgets are created using the Text function:text = Text(parent, width=40, height=10)原创 2014-07-30 15:20:14 · 805 阅读 · 0 评论 -
Tk Tutorial - 12. Canvas
A canvas widget manages a 2D collection of graphical objects — lines, circles,images, other widgets and more.Canvas widgets are created using the Canvas function:原创 2014-07-29 17:30:37 · 1131 阅读 · 0 评论 -
Tk Tutorial - 11. Fonts, Colors, Images
Fonts原创 2014-07-29 16:46:17 · 820 阅读 · 0 评论 -
Tk Tutorial - 10. Organizing Complex Interfaces
White space原创 2014-07-29 16:03:53 · 883 阅读 · 0 评论 -
Tk Tutorial - 9. Windows and Dialogs
Creating and Destroying Windows原创 2014-07-28 14:45:00 · 1796 阅读 · 0 评论 -
Tk Tutorial - 8. Menus
Speaking of which, the recommended way to figure out which platform you're running on is:原创 2014-07-26 12:34:35 · 830 阅读 · 0 评论 -
Tk Tutorial - 7. More Widgets
Listbox原创 2014-07-25 20:09:16 · 789 阅读 · 0 评论 -
Tk Tutorial - 6. The Grid Geometry Manager
There are other geometry managers: "pack" is also quite powerful, but harder touse and understand; "place" gives you complete control of positioning each element; we'll see evenwidgets like paned wind原创 2014-07-24 11:37:38 · 783 阅读 · 0 评论 -
Tk Tutorial - 5. Basic Widgets
Frame原创 2014-07-23 22:13:05 · 814 阅读 · 0 评论 -
Tk Tutorial - 4. Tk Concepts
Widgets原创 2014-07-22 21:18:14 · 1045 阅读 · 0 评论 -
理解 Python 装饰器看这一篇就够了
理解 Python 装饰器看这一篇就够了简单装饰器@ 语法糖*args、**kwargs带参数的装饰器类装饰器functools.wraps装饰器顺序讲 Python 装饰器前,我想先举个例子,虽有点污,但跟装饰器这个话题很贴切。每个人都有的内裤主要功能是用来遮羞,但是到了冬天它没法为我们防风御寒,咋办?我们想到的一个办法就是把内裤改造一下,让它变得更厚更长,这样一来,它不仅有遮羞功能,还能提...转载 2019-04-17 13:53:41 · 309 阅读 · 0 评论