出版時(shí)間:2011-5 出版社:東南大學(xué)出版社 作者:魯茲
Tag標(biāo)簽:無(wú)
內(nèi)容概要
本書(shū)是由Mark
Lutz編寫(xiě)的《Python編程(影印版第4版)》?!禤ython編程(影印版第4版)》的內(nèi)容包括:
Python快速入門(mén):搭建一個(gè)簡(jiǎn)單的例子,包括數(shù)據(jù)表示、面向?qū)ο缶幊?、?duì)象持久化、GUI和網(wǎng)站基礎(chǔ);系統(tǒng)編程:針對(duì)命令行腳本編寫(xiě)、處理文件和文件夾、并行運(yùn)行程序等需求探索系統(tǒng)接口工具和技術(shù);
GUI編程:學(xué)習(xí)使用Python tkinter組件庫(kù)來(lái)創(chuàng)建完整的用戶界面;
互聯(lián)網(wǎng)編程:訪問(wèn)客戶端網(wǎng)絡(luò)協(xié)議和電子郵件工具,使用CGI腳本,以及學(xué)習(xí)網(wǎng)站搭建技術(shù);更多應(yīng)用Python的地方:實(shí)現(xiàn)數(shù)據(jù)結(jié)構(gòu),分析基于文本的信息,訪問(wèn)數(shù)據(jù)庫(kù),以及擴(kuò)展和嵌入Python。
作者簡(jiǎn)介
Mark
Lutz是Python培訓(xùn)的世界領(lǐng)先者,他是最早和最暢銷Python著作的作者,從1992年起就是Python社區(qū)的先鋒人物。Mark有25年的軟件開(kāi)發(fā)經(jīng)驗(yàn)而且是《Python編程》前一版的作者,也是O’Reilly的《Learning
Python and Python Pocket Reference》的作者。
書(shū)籍目錄
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
章節(jié)摘錄
版權(quán)頁(yè): 插圖: 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冊(cè))》針對(duì)該語(yǔ)言的主要應(yīng)用領(lǐng)域——系統(tǒng)管理、GUI和Web——做了深入講解,并且探索了它在數(shù)據(jù)庫(kù)、網(wǎng)絡(luò)、前端腳本撰寫(xiě)層、文本處理和更多方面的使用。通過(guò)重點(diǎn)關(guān)注常用工具和庫(kù),你將會(huì)對(duì)Python在實(shí)際現(xiàn)實(shí)世界里的編程有更深的理解。你將通過(guò)一種清晰和簡(jiǎn)潔的方式——講解大量正確用法和常見(jiàn)慣例的例子——學(xué)會(huì)語(yǔ)言的語(yǔ)法和編程技巧?!禤ython編程(影印版)(第4版)(套裝共2冊(cè))》針對(duì)3.x版本做了完全的更新,它探討了Python如何成為軟件開(kāi)發(fā)工具,并且特別為此設(shè)計(jì)了很多代碼示例。
圖書(shū)封面
圖書(shū)標(biāo)簽Tags
無(wú)
評(píng)論、評(píng)分、閱讀與下載
Python編程 第4版 影印版 上下冊(cè) PDF格式下載
250萬(wàn)本中文圖書(shū)簡(jiǎn)介、評(píng)論、評(píng)分,PDF格式免費(fèi)下載。 第一圖書(shū)網(wǎng) 手機(jī)版