The Big Book of Small Python Projects(小型 Python 项目大书)
[复制链接]
本帖最后由 dcexpert 于 2023-1-23 17:08 编辑
这个精选的简单 Python 项目集合让您可以立即投入并制作数字艺术、游戏、动画、数字运算工具等!忘记标准的分步教程;相反,作者 Al Sweigart 采用边做边学的方法,为您提供 80 多个程序供您手动复制、运行和使用。了解代码的工作原理后,就可以尝试自己的更改并练习自己重新创建它们了。
每个项目都是一个独立的小章节,其中包括程序输出的示例运行、源代码和定制建议。无论是老式屏幕保护程序、蜗牛赛车游戏、点击诱饵标题生成器,还是您 DNA 的动画链,这些基于文本的简单程序都很小——限制在 256 行或更少的代码——并且设计为独立的在单个源代码文件中,以便您可以轻松地在线发布和共享它们。
目录
- Introduction
- Project 1 - Bagels
- Project 2 - Birthday Paradox
- Project 3 - Bitmap Message
- Project 4 - Blackjack
- Project 5 - Bouncing DVD Logo
- Project 6 - Caesar Cipher
- Project 7 - Caesar Hacker
- Project 8 - Calendar Maker
- Project 9 - Carrot in a Box
- Project 10 - Cho-Han
- Project 11 - Clickbait Headline Generator
- Project 12 - Collatz Sequence
- Project 13 - Conway's Game of Life
- Project 14 - Countdown
- Project 15 - Deep Cave
- Project 16 - Diamonds
- Project 17 - Dice Math
- Project 18 - Dice Roller
- Project 19 - Digital Clock
- Project 20 - Digital Stream
- Project 21 - DNA Visualization
- Project 22 - Ducklings
- Project 23 - Etching Drawer
- Project 24 - Factor Finder
- Project 25 - Fast Draw
- Project 26 - Fibonacci
- Project 27 - Fish Tank
- Project 28 - Flooder
- Project 29 - Forest Fire Sim
- Project 30 - Four in a Row
- Project 31 - Guess the Number
- Project 32 - Gullible
- Project 33 - Hacking Minigame
- Project 34 - Hangman & Guillotine
- Project 35 - Hex Grid
- Project 36 - Hourglass
- Project 37 - Hungry Robots
- Project 38 - J'Accuse!
- Project 39 - Langton's Ant
- Project 40 - Leetspeak
- Project 41 - Lucky Stars
- Project 42 - Magic Fortune Ball
- Project 43 - Mancala
- Project 44 - Maze Runner 2D
- Project 45 - Maze Runner 3D
- Project 46 - Million Dice Statistics
- Project 47 - Mondrian Art Generator
- Project 48 - Monty Hall
- Project 49 - Multiplication Table
- Project 50 - Ninety Nine Bottles
- Project 51 - niNety nniinE BoOttels
- Project 52 - Numeral Systems
- Project 53 - Periodic Table of the Elements
- Project 54 - Pig Latin
- Project 55 - Powerball Lottery
- Project 56 - Prime Numbers
- Project 57 - Progress Bar
- Project 58 - Rainbow
- Project 59 - Rock Paper Scissors
- Project 60 - Rock Paper Scissors (Always-Win Version)
- Project 61 - ROT 13 Cipher
- Project 62 - Rotating Cube
- Project 63 - Royal Game of Ur
- Project 64 - Seven-Segment Display Module
- Project 65 - Shining Carpet
- Project 66 - Simple Substitution Cipher
- Project 67 - Sine Message
- Project 68 - Sliding Tile Puzzle
- Project 69 - Snail Race
- Project 70 - Soroban Japanese Abacus
- Project 71 - Sound Mimic
- Project 72 - sPoNgEcAsE
- Project 73 - Sudoku Puzzle
- Project 74 - Text To Speech Talker
- Project 75 - Three-Card Monte
- Project 76 - Tic-Tac-Toe
- Project 77 - Tower of Hanoi Puzzle
- Project 78 - Trick Questions
- Project 79 - Twenty Forty Eight
- Project 80 - Vigenère Cipher
- Project 81 - Water Bucket Puzzle
- Appendix A - Tag Index
- Appendix B - Character Map
|