Impractical Python Projects: Playful Programming Activities to Make You Smarter

Lee Vaughan

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

商品描述

Impractical Python Projects is a collection of fun and educational projects designed to entertain programmers while enhancing their Python skills. It picks up where the complete beginner books leave off, expanding on existing concepts and introducing new tools that you'll use every day. And to keep things interesting, each project includes a zany twist featuring historical incidents, pop culture references, and literary allusions.

You'll flex your problem-solving skills and employ Python's many useful libraries to do things like:
- Help James Bond crack a high-tech safe with a hill-climbing algorithm
- Write haiku poems using Markov Chain Analysis
- Use genetic algorithms to breed a race of gigantic rats
- Crack the world's most successful military cipher using cryptanalysis
- Derive the anagram, "I am Lord Voldemort" using linguistical sieves
- Plan your parents' secure retirement with Monte Carlo simulation
- Save the sorceress Zatanna from a stabby death using palingrams
- Model the Milky Way and calculate our odds of detecting alien civilizations
- Help the world's smartest woman win the Monty Hall problem argument
- Reveal Jupiter's Great Red Spot using optical stacking
- Save the head of Mary, Queen of Scots with steganography
- Foil corporate security with invisible electronic ink

Simulate volcanoes, map Mars, and more, all while gaining valuable experience using free modules like Tkinter, matplotlib, Cprofile, Pylint, Pygame, Pillow, and Python-Docx.

Whether you're looking to pick up some new Python skills or just need a pick-me-up, you'll find endless educational, geeky fun with Impractical Python Projects.

商品描述(中文翻譯)

「Impractical Python Projects」是一本集合有趣且具教育性的專案,旨在娛樂程式設計師同時提升他們的Python技能。它延續了初學者書籍的內容,擴展現有概念並引入新的工具,這些工具將在日常使用中派上用場。為了增加趣味性,每個專案都包含一個古怪的轉折,涉及歷史事件、流行文化參考和文學典故。

在這本書中,你將運用解決問題的能力,並利用Python的許多有用函式庫來完成以下任務:
- 幫助詹姆斯·邦德使用爬山演算法破解高科技保險箱
- 使用馬可夫鏈分析寫俳句詩
- 使用遺傳演算法培育一種巨大老鼠的品種
- 使用密碼分析破解世界上最成功的軍事密碼
- 使用語言篩選器推導出「我是佛地魔」的字謎
- 使用蒙地卡羅模擬規劃你父母的安全退休計劃
- 使用回文詞救助女巫薩坦娜免於被刺死
- 模擬銀河系並計算我們發現外星文明的機率
- 幫助世界上最聰明的女人贏得蒙提霍爾問題的辯論
- 使用光學堆疊技術揭示木星的大紅斑
- 使用隱寫術拯救瑪麗女王的頭顱
- 使用隱形電子墨水破解企業安全系統

在這本書中,你還可以模擬火山、繪製火星地圖等等,同時獲得使用Tkinter、matplotlib、Cprofile、Pylint、Pygame、Pillow和Python-Docx等免費模組的寶貴經驗。

無論你是想學習新的Python技能還是需要一點提振,你都可以在「Impractical Python Projects」中找到無盡的教育性和極客趣味。

目錄大綱

Chapter 1: Silly Name Generator
Chapter 2: Finding Palingram Spells
Chapter 3: Solving Anagrams
Chapter 4: Decoding American Civil War Ciphers
Chapter 5: Encoding English Civil War Ciphers
Chapter 6: Writing in Invisible Ink
Chapter 7: Breeding Giant Rats with Genetic Algorithms
Chapter 8: Counting Syllables for Haiku Poetry
Chapter 9: Writing Haiku with Markov Chain Analysis
Chapter 10: Are We Alone? Exploring the Fermi Paradox
Chapter 11: The Monty Hall Problem
Chapter 12: Securing your Nest Egg
Chapter 13: Simulating an Alien Volcano
Chapter 14: Mapping Mars with the Mars Orbiter
Chapter 15: Improving Your Astrophotography with Planet Stacking
Chapter 16: Finding Frauds with Benford's Law
Appendix: Practice Project Solutions

目錄大綱(中文翻譯)

第1章:愚蠢名字生成器
第2章:尋找回文拼字
第3章:解決字母重組問題
第4章:解碼美國內戰密碼
第5章:編碼英國內戰密碼
第6章:使用隱形墨水書寫
第7章:遺傳演算法繁殖巨大老鼠
第8章:計算俳句詩的音節數
第9章:使用馬可夫鏈分析寫俳句詩
第10章:我們孤獨嗎?探索費米悖論
第11章:蒙提霍爾問題
第12章:保護你的退休金
第13章:模擬外星火山
第14章:使用火星軌道器繪製火星地圖
第15章:使用行星堆疊改進天體攝影
第16章:使用本福德定律尋找欺詐行為
附錄:練習專案解答