开始读AUTOMATE THE BORING STUFF WITH PYTHON第二版

本书介绍Python编程基础及自动化任务处理,覆盖从环境搭建到高级应用的全面内容,包括字符串操作、文件读写、网络爬虫、Excel操作等,适合初学者快速上手。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

大年初二,哪也去不了,只有在家读书了。
2020年1月26日早8点开始读。这本书可以在此网站免费阅读。
2月6日下午14:40读完。
这本书还是比较实用和全面的!整个实用环境用的是Oracle Linux。
在这里插入图片描述
本书的出版社页面
作者的其它书可参加这里
这本书,如作者所说:it’s a guide for beginners
关于编程,引用作者的话:

This is the power of computer programming. A computer is like a Swiss Army knife that you can configure for countless tasks. Many people spend hours clicking and typing to perform repetitive tasks, unaware that the machine they’re using could do their job in seconds if they gave it the right instructions.

Programming is simply the act of entering instructions for the computer to perform.

Python的名字来自英国超现实主义戏剧组合Monty Python,而不是蛇。
Python编程不需要太多数学,何时学都不会太晚。编程是一种创作。
Linux下安装Python:

yum install python3
yum install python3-pip # 此句没有必要,因为pip已包含在python3中

随书示例代码从这里下载,约8.4M。
其中包括一个文件automate-linux-requirements.txt,内容如下:

$ cat automate-linux-requirements.txt 
send2trash==1.5.0
requests==2.21.0
beautifulsoup4==4.7.1
selenium==3.141.0
openpyxl==2.6.1
PyPDF2==1.26.0
python-docx==0.8.10
imapclient==2.1.0
pyzmail36==1.0.4
twilio
pillow==5.4.1
PyInputPlus==0.2.6
ezgmail==0.0.4
ezsheets==0.0.2
python3-xlib==0.15

运行以下安装本书所需所有模块:

$ pip3 install --user -r automate-linux-requirements.txt --user

作者所说的Mu在Linux下不支持,用交互式shell就好。

安装第三方模块用pip

如何获取帮助:

  • Google
  • docs.python.org
  • 交互式shell中的help()

如何问问题:

  1. https://stackoverflow.com/
  2. https://reddit.com/r/learnprogramming/
  3. https://pastebin.com/
  4. https://autbor.com/help/
  5. https://inventwithpython.com/blog/2018/02/02/how-to-ask-for-programming-help/
  6. https://inventwithpython.com/blog/
  7. https://reddit.com/r/inventwithpython/
  8. https://gist.github.com/

以下是读书进度表。
PART I PYTHON PROGRAMMING BASICS

章节开始结束链接
12020/1/262020/1/26PYTHON BASICS
22020/1/262020/1/26FLOW CONTROL
32020/1/262020/1/26FUNCTIONS
42020/1/262020/1/26LISTS
52020/1/262020/1/27DICTIONARIES AND STRUCTURING DATA
62020/2/282020/2/28MANIPULATING STRINGS

PART II AUTOMATING TASKS

章节开始结束链接
72020/1/282020/1/28PATTERN MATCHING WITH REGULAR EXPRESSIONS
82020/1/292020/1/29INPUT VALIDATION
92020/1/292020/1/30READING AND WRITING FILES
102020/1/302020/1/31ORGANIZING FILES
112020/1/312020/1/31DEBUGGING
122020/1/312020/2/2WEB SCRAPING
132020/2/22020/2/2WORKING WITH EXCEL SPREADSHEETS
142020/2/62020/2/6WORKING WITH GOOGLE SHEETS
152020/2/32020/2/3WORKING WITH PDF AND WORD DOCUMENTS
162020/2/32020/2/3WORKING WITH CSV FILES AND JSON DATA
172020/2/32020/2/3KEEPING TIME, SCHEDULING TASKS, AND LAUNCHING PROGRAMS
182020/2/62020/2/6SENDING EMAIL AND TEXT MESSAGES
192020/2/52020/2/5MANIPULATING IMAGES
202020/2/52020/2/5CONTROLLING THE KEYBOARD AND MOUSE WITH GUI AUTOMATION

附录A为安装额外的包,附录B为如何运行程序,附录C为每一章末问题的答案。

单词

etiquette - 礼仪

Title: Automate the Boring Stuff with Python: Practical Programming for Total Beginners Author: Albert Sweigart Length: 504 pages Edition: 1 Language: English Publisher: No Starch Press Publication Date: 2015-05-01 ISBN-10: 1593275994 ISBN-13: 9781593275990 If you've ever spent hours renaming files or updating hundreds of spreadsheet cells, you know how tedious tasks like these can be. But what if you could have your computer do them for you? In Automate the Boring Stuff with Python, you'll learn how to use Python to write programs that do in minutes what would take you hours to do by hand—no prior programming experience required. Once you've mastered the basics of programming, you'll create Python programs that effortlessly perform useful and impressive feats of automation to: Search for text in a file or across multiple files Create, update, move, and rename files and folders Search the Web and download online content Update and format data in Excel spreadsheets of any size Split, merge, watermark, and encrypt PDFs Send reminder emails and text notifications Fill out online forms Step-by-step instructions walk you through each program, and practice projects at the end of each chapter challenge you to improve those programs and use your newfound skills to automate similar tasks. Don't spend your time doing work a well-trained monkey could do. Even if you've never written a line of code, you can make your computer do the grunt work. Learn how in Automate the Boring Stuff with Python. Table of Contents Part I. Python Programming Basics Chapter 1. Python Basics Chapter 2. Flow Control Chapter 3. Functions Chapter 4. Lists Chapter 5. Dictionaries and Structuring Data Chapter 6. Manipulating Strings Part II. Automating Tasks Chapter 7. Pattern Matching with Regular Expressions Chapter 8. Reading and Writing Files Chapter 9. Organizing Files Chapter 10. Debugging Chapter 11. Web Scraping Chapter 12. Working with Excel Spreadsheets Chapter 13. Working with PDF and word Documents Chapter 14. Working with CSV Files and JSON Data Chapter 15. Keeping Time, Scheduling Tasks, and Launching Programs Chapter 16. Sending Email and Text Messages Chapter 17. Manipulating Images Chapter 18. Controlling the Keyboard and Mouse with GUI Automation Appendix A. Installing Third-Party Modules Appendix B. Running Programs Appendix C. Answers to the Practice Questions
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值