Automate the Boring Stuff with Python: Practical Programming for Total Beginners (Paperback)

Al Sweigart

買這商品的人也買了...

商品描述

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.

商品描述(中文翻譯)

如果你曾花費數小時重新命名檔案或更新數百個試算表儲存格,你就知道這些任務有多麼乏味。但如果你能讓電腦替你完成這些任務,該有多好呢?

在《使用Python自動化瑣碎事務》一書中,你將學習如何使用Python編寫程式,在幾分鐘內完成手動操作需要數小時才能完成的任務,而且不需要任何編程經驗。一旦掌握了基本的編程知識,你將能輕鬆創建Python程式,實現以下有用且令人印象深刻的自動化功能:

- 在單個檔案或多個檔案中搜尋文字
- 創建、更新、移動和重新命名檔案和資料夾
- 搜尋網路並下載線上內容
- 更新和格式化任意大小的Excel試算表中的資料
- 拆分、合併、加浮水印和加密PDF檔案
- 發送提醒郵件和短信通知
- 填寫線上表單

逐步指示將引導你完成每個程式,每章結束時的練習專案將挑戰你改進這些程式並運用你新學到的技能自動化類似的任務。

不要浪費時間做一只受過良好訓練的猴子也能做的工作。即使你從未寫過一行程式碼,你也能讓你的電腦完成繁瑣的工作。在《使用Python自動化瑣碎事務》一書中學習如何實現這一點。