内容概要

本书是由Mark

Lutz编写的《Python编程(影印版第4版)》。《Python编程(影印版第4版)》的内容包括:

Python快速入门:搭建一个简单的例子,包括数据表示、面向对象编程、对象持久化、GUI和网站基础;系统编程:针对命令行脚本编写、处理文件和文件夹、并行运行程序等需求探索系统接口工具和技术;

GUI编程:学习使用Python tkinter组件库来创建完整的用户界面;

互联网编程:访问客户端网络协议和电子邮件工具,使用CGI脚本,以及学习网站搭建技术;更多应用Python的地方:实现数据结构,分析基于文本的信息,访问数据库,以及扩展和嵌入Python。

作者简介

Mark

Lutz是Python培训的世界领先者,他是最早和最畅销Python著作的作者,从1992年起就是Python社区的先锋人物。Mark有25年的软件开发经验而且是《Python编程》前一版的作者,也是O’Reilly的《Learning

Python and Python Pocket Reference》的作者。

书籍目录

Preface

Part I. The Beginning

1. A Sneak Preview

Part II. System Programming

2. System Tools

3. Script Execution Context

4. File and Directory Tools

5. Parallel System Tools

6. Complete System Programs

Part III. GUI Programming

7. Graphical User Interfaces

8. A tkinter Tour, Part

9. A tkinter Tour, Part 2

10. GUI Coding Techniques

11. Complete GUI Programs

Part IV. Internet Programming

12. Network Scripting

13. Client-Side Scripting

14. The PyMailGUI Client

15. Server-Side Scripting

16. The PyMailCGI Server

Part V. Tools and Techniques

17. Databases and Persistence

18. Data Structures

19. Text and Language

20. Python/C Integration

Part VI. The End

21. Conclusion: Python and the Development Cycle

Index

章节摘录

版权页: 插图: The "browse" button in Figure 10-7 pops up a file selection dialog just as the packdlg form did.Instead of an OK button,this dialog binds the Enter key-press event to kill the window and end the modalwait state pause; on submission, the name of the packed file is passed to the main function of the unpacker script shown earlier to perform the actual file scan process. Room forimprovement All of this works as advertised-by making command-line tools available in graphical form like this, they become much more attractive to users accustomed to the GUI way of life.We've effectively added a simple GUI front-end to command-line tools.Still, two aspects of this design seem prime for improvement. First, both of the input dialogs use common code to build the rows of their input forms, but it's tailored to this specific use case; we might be able to simplify the dialogs further by importing a more generic form-builder module instead.We met general form builder code in Chapters 8 and 9, and we'll meet more later-see the form.py module in Chapter 12 for pointers on further genericizing form construction. Second, at the point where the user submits input data in either form dialog,we've lost the GUI trail-the GUI is blocked, and messages are routed back to the console.The GUI is technically blocked and will not update itselfwhile the pack and unpack utilities run; although these operations are fast enough for my files as to be negligible,we would probably want to spawn these calls off in threads for very large files to keep the main GUI thread active (more on threads later in this chapter). The console issue is more blatant: packer and unpacker messages still show up in the stdout console window, not in the GUI (all the filenames here include full directory paths if you select them with the GUI's Browse buttons, courtesy of the standard Open dialog): C:\...\PP4E\Gui\5hellGui\temp> python ..\mytools.py list PP4E saolledtext list test Packer: packed.all ('spam.txt', 'ham.txt', 'eggs.txt') packing: spam.txt packing: ham.txt packing: eggs.txt Unpacker: packed.all creating: spam.txt creating: ham.txt creating: eggs.txt.

编辑推荐

《Python编程(影印版)(第4版)(套装共2册)》针对该语言的主要应用领域——系统管理、GUI和Web——做了深入讲解,并且探索了它在数据库、网络、前端脚本撰写层、文本处理和更多方面的使用。通过重点关注常用工具和库,你将会对Python在实际现实世界里的编程有更深的理解。你将通过一种清晰和简洁的方式——讲解大量正确用法和常见惯例的例子——学会语言的语法和编程技巧。《Python编程(影印版)(第4版)(套装共2册)》针对3.x版本做了完全的更新,它探讨了Python如何成为软件开发工具,并且特别为此设计了很多代码示例。

图书封面

图书标签Tags

评论、评分、阅读与下载

还没读过(84)

勉强可看(608)

一般般(103)

内容丰富(4303)

强力推荐(352)

python编程第四版_Python编程 第4版 影印版 上下册相关推荐

  1. Python爬虫【四】爬取PC网页版“微博辟谣”账号内容(selenium多线程异步处理多页面)

    专题系列导引   爬虫课题描述可见: Python爬虫[零]课题介绍 – 对"微博辟谣"账号的历史微博进行数据采集   课题解决方法: 微博移动版爬虫 Python爬虫[一]爬取移 ...

  2. python好学么零基础_python编程好学吗 自学行吗

    很多人都说python简单好学,对于有编程经验和一定基础的人来说,学python并不难.但如果是零基础人员,学起来还是有一定难度的.Python相对于其他编程语言来说比较容易,入门简单,对零基础人员比 ...

  3. python新建文件夹口令_python编程快速上手—口令保管箱

    之前小编为大家整理了如何成为一个优秀的程序员应该具备的品质,接下来为大家展示一个简单有趣的python小项目,从中体会编程的乐趣.小编了解这个小项目之后,很是惊奇,觉得python竟然还可以做这样的事 ...

  4. 可用作python变量名的是_Python编程4:什么是变量

    #少儿编程# 我们在上一篇<Python编程3:与计算机对话之键盘输入input()>中介绍input()函数时曾经使用过变量,将键盘输入的内容赋给变量name.变量,在各个编程语言中都是 ...

  5. python编程狮苹果系统_Python编程狮 v1.2.2 苹果IOS版

    软件介绍 Python编程狮是一款专门为零基础编程爱好者打造的一款Pyt8 m V R H % r S Lhon入门工具App,致力于帮助初学者入门,轻松迈入编程世界.学Python编程,从这里开始! ...

  6. python编程案例教程第四章_Python编程入门-第四章 流程控制 -学习笔记

    第四章 流程控制 一.布尔逻辑 *在Python中,用True和False表示真值.一般使用4个主要的逻辑运算符来组合形成布尔值:not\and\or\==. 如: False==False #Tru ...

  7. python四大器_Python编程四大神兽:迭代器、生成器、闭包和装饰器

    生成器 生成器是生成一个值的特殊函数,它具有这样一个特点:第一次执行该函数时,先从头按顺序执行,在碰到yield关键字时该函数会暂停执行该函数后续的代码,并且返回一个值:在下一次调用该函数执行时,程序 ...

  8. python写错了怎么撤回_Python编程常见问题与解答

    1.问:Python代码运行速度和C语言相比,哪个更快? 答:一般来说,Python代码的运行速度比C语言的慢很多,但是如果充分运用内置函数.标准库对象和函数式编程模式的话,运行速度会提高很多,可以接 ...

  9. python 分离整数与小数_Python编程:离不开算术运算符的顺序结构

    今天讲解的是第二篇<离不开算术运算符的顺序结构>.本节主要针对几个不易理解的算术运算符进行介绍,并在了解顺序结构的基础上,学习信息技术学考中顺序结构编程.知识点学习共包括四关. 你准备好了 ...

最新文章

  1. MIT新研究给量子计算机「泼冷水」:自然界辐射会干扰它,需要研究新对策 | Nature...
  2. android 混淆打包教程,Android studio 混淆打包
  3. Mac怎么刷新DNS缓存
  4. 聊聊并发-Java中的Copy-On-Write容器
  5. 被迫学计算机,电脑强迫人学习
  6. 10 个开发新人提及最多的 GitHub Repo
  7. 大表与大表join数据倾斜_技术分享|大数据技术初探之Spark数据倾斜调优
  8. java线程的5个使用技巧
  9. mysql 本地登录失败 - 已授权
  10. 仿QQ锁屏界面消息提示
  11. 蚂蚁区块链在司法存证领域的探索与实践
  12. Python 网页爬虫 文本处理 科学计算 机器学习 数据挖掘兵器谱 - 数客
  13. html2canvas 在手机app端的问题
  14. SMBUS和i2cBus,PMBus 区别
  15. 哈希表存储数据结构原理
  16. canvas绘制竖排的数字_微信小程序利用Canvas绘制图片和竖排文字详解
  17. 2020计算机保研实录
  18. 计算机知识练习中公,计算机考试题库:计算机基础练习题(14)
  19. 蚂蚁集团副总裁,任复旦大学人工智能学院院长!
  20. RecyclerView之利用ItemDecoration实现万能分割线

热门文章

  1. 电磁信号检波方案:是否多此一举?
  2. java 使用GDAL读取
  3. win7 启动速度慢 IDE模式 解决办法
  4. 江西计算机专业考公务员,江西省考16万考生,专业人才却能避开竞争,盘点最容易公考岗位...
  5. Box2D 像素(pixels)
  6. ppt取色html,如何进行屏幕取色,取色器工具怎么使用,教你在线识别颜色
  7. iOS组件化及架构设计
  8. [乐意黎]Windows cannot access \\127.0.0.1 等局域网和网上邻居无法访问的解决方法
  9. Week 6 测验:Advice for Applying Machine Learning【Maching Learning】
  10. 网络营销常用的几种策略