The Big Book of Small Python Projects: 81 Easy Practice Programs

Sweigart, Al

  • 出版商: No Starch Press
  • 出版日期: 2021-06-25
  • 定價: $1,398
  • 售價: 9.5$1,328
  • 語言: 英文
  • 頁數: 432
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1718501242
  • ISBN-13: 9781718501249
  • 相關分類: Python程式語言
  • 立即出貨 (庫存=1)

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

相關主題

商品描述

Deploy Python creatively and effectively through this collection of short coding projects carefullly curated by best-selling author and Python expert Al Sweigart.

This curated collection of simple Python projects lets you dive right in and make digital art, games, animations, number-crunching tools and more - right away! Forget standard step-by-step tutorials; instead, author Al Sweigart takes a learn-by-doing approach that provides you with over 80 programs to manually copy, run, and play with. Once you see how the code works, it's time to experiment with your own changes and practice re-creating them yourself.

Each project is a standalone mini-chapter that includes a sample run of the program's output, the source code, and suggestions for customization. Whether it's a vintage screensaver, a snail-racing game, a clickbait headline generator, or animated strands of your DNA, these simple, text-based programs are small - limited to 256 lines of code or less - and designed to be self-contained in a single source-code file so you can easily post and share them online.

You'll create:

● Hangman, Blackjack and other games to play against a computer or your friends
● Simulations of a spreading forest fire, a million dice rolls, and a Japanese abacus
● Animation programs, like a fish tank, a rotating cube, and a bouncing DVD logo
● Mazes that you design then escape from, and a 3D Maze Runner-like video game
● Encryption programs that use ciphers like ROT13 and Vigenère to conceal text

For those who've mastered basic Python syntax and are ready to have fun making programs, the projects in this book will spark new ideas for what's possible within just a few pages of code.

商品描述(中文翻譯)

這本書是由暢銷作家和Python專家Al Sweigart精心挑選的一系列短期編碼項目,旨在創造性且有效地部署Python。這個精選的簡單Python項目集讓您立即深入其中,製作數字藝術、遊戲、動畫、數據計算工具等等!忘記標準的逐步教程吧;相反,作者Al Sweigart採用了一種通過實踐學習的方法,為您提供了80多個程序,供您手動複製、運行和玩耍。一旦您了解了代碼的運作方式,就可以嘗試進行自己的修改並練習重新創建它們。每個項目都是一個獨立的小章節,包括程序輸出的示例運行、源代碼以及自定義建議。無論是復古屏幕保護程序、蝸牛賽跑遊戲、點擊誘餌標題生成器還是DNA動畫串,這些簡單的基於文本的程序都很小巧,限制在256行代碼或更少,並且設計成單個源代碼文件,因此您可以輕鬆地在線上發布和分享它們。您將創建:
● 與電腦或朋友對戰的猜字遊戲、二十一點等遊戲
● 擴散的森林火災、百萬次擲骰子和日本珠算的模擬
● 動畫程序,如魚缸、旋轉立方體和彈跳的DVD標誌
● 您設計並逃脫的迷宮,以及類似3D《Maze Runner》的視頻遊戲
● 使用ROT13和Vigenère等密碼技術的加密程序,用於隱藏文本。對於已經掌握基本Python語法並準備好享受編寫程序的人來說,本書中的項目將在幾頁代碼中激發新的創意和可能性。

作者簡介

Al Sweigart is a professional software developer who teaches programming to kids and adults. Sweigart has written several bestselling programming books for beginners, including Automate the Boring Stuff with Python, Beyond the Basic Stuff with Python, Invent Your Own Computer Games with Python, Cracking Codes with Python, and Coding with Minecraft (all from No Starch Press).

作者簡介(中文翻譯)

Al Sweigart是一位專業的軟體開發者,他教導兒童和成人編程。Sweigart已經為初學者撰寫了幾本暢銷的編程書籍,包括《用Python自動化無聊的事情》、《超越Python基礎》、《用Python創造自己的電腦遊戲》、《用Python破解密碼》和《用Minecraft編程》(全部由No Starch Press出版)。