Tiny Python Projects

0
(0)

Tiny Python Projects
 

  • Author:Ken Youens-Clark
  • Length: 440 pages
  • Edition: 1
  • Publisher: Manning Publications
  • Publication Date: 2020-09-01
  • ISBN-10: 1617297518
  • ISBN-13: 9781617297519
  • Sales Rank: #529998 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Tiny Python Projects takes you from amateur to Pythonista as you create 22 bitesize programs. Each tiny project teaches you a new programming concept, from the basics of lists and strings right through to regular expressions and randomness.

    Summary

    A long journey is really a lot of little steps. The same is true when you’re learning Python, so you may as well have some fun along the way! Written in a lighthearted style with entertaining exercises that build powerful skills, Tiny Python Projects takes you from amateur to Pythonista as you create 22 bitesize programs. Each tiny project teaches you a new programming concept, from the basics of lists and strings right through to regular expressions and randomness. Along the way you’ll also discover how testing can make you a better programmer in any language.

    About the technology

    Who says learning to program has to be boring? The 21 activities in this book teach Python fundamentals through puzzles and games. Not only will you be entertained with every exercise, but you’ll learn about text manipulation, basic algorithms, and lists and dictionaries as you go. It’s the ideal way for any Python newbie to gain confidence and experience.

    About the book

    The projects are tiny, but the rewards are big: each chapter in Tiny Python Projects challenges you with a new Python program, including a password creator, a word rhymer, and a Shakespearean insult generator. As you complete these entertaining exercises, you’ll graduate from a Python beginner to a confident programmer—and you’ll have a good time doing it!

    What’s inside

    • Write command-line Python programs
    • Manipulate Python data structures
    • Use and control randomness
    • Write and run tests for programs and functions
    • Download testing suites for each project

    About the reader

    For readers with beginner programming skills.

    About the author

    Ken Youens-Clark is a Senior Scientific Programmer at the University of Arizona. He has an MS in Biosystems Engineering and has been programming for over 20 years.

    Table of Contents

    1 How to write and test a Python program

    2 The crow’s nest: Working with strings

    3 Going on a picnic: Working with lists

    4 Jump the Five: Working with dictionaries

    5 Howler: Working with files and STDOUT

    6 Words count: Reading files and STDIN, iterating lists, formatting strings

    7 Gashlycrumb: Looking items up in a dictionary

    8 Apples and Bananas: Find and replace

    9 Dial-a-Curse: Generating random insults from lists of words

    10 Telephone: Randomly mutating strings

    11 Bottles of Beer Song: Writing and testing functions

    12 Ransom: Randomly capitalizing text

    13 Twelve Days of Christmas: Algorithm design

    14 Rhymer: Using regular expressions to create rhyming words

    15 The Kentucky Friar: More regular expressions

    16 The Scrambler: Randomly reordering the middles of words

    17 Mad Libs: Using regular expressions

    18 Gematria: Numeric encoding of text using ASCII values

    19 Workout of the Day: Parsing CSV files, creating text table output

    20 Password strength: Generating a secure and memorable password

    21 Tic-Tac-Toe: Exploring state

    22 Tic-Tac-Toe redux: An interactive version with type hints

    中文:

    书名:微小的巨型巨蟒项目

    微小的巨型巨蟒项目 当你创建22个比特大小的程序时,带你从业余爱好者到Pythonista。每个小项目都会教给您一个新的编程概念,从列表和字符串的基础知识一直到正则表达式和随机性。

    摘要

    长途旅行真的是走了很多小步。当您学习Python时也是如此,所以您不妨在学习的过程中获得一些乐趣!以轻松的风格写成,带有娱乐性的练习,建立了强大的技能, 微小的巨型巨蟒项目 当你创建22个比特大小的程序时,带你从业余爱好者到Pythonista。每个小项目都会教给您一个新的编程概念,从列表和字符串的基础知识一直到正则表达式和随机性。在此过程中,您还将发现测试如何使您成为一名更好的语言程序员。

    About the technology

    谁说学习编程一定要枯燥乏味?本书中的21项活动通过拼图和游戏教授Python基础知识。您不仅会从每个练习中获得乐趣,还会在学习过程中学习文本处理、基本算法以及列表和词典。这是任何一位Python新手获得信心和经验的理想方式。

    关于这本书

    这些项目很小,但回报很大:每一章都是微小的巨型巨蟒项目它用一个新的Python程序挑战你,包括一个密码创建器,一个单词押韵程序,以及一个莎士比亚式的侮辱生成器。当您完成这些有趣的练习时,您将从一个Python初学者过渡到一个自信的程序员–并且您将会非常开心地这样做!

    里面有什么?

    • 编写命令行Python程序
    • 操作Python数据结构
    • Use and control randomness
    • 编写和运行程序和函数的测试
    • 下载每个项目的测试套件

    关于读者

    适用于具有初级编程技能的读者。

    关于作者

    肯尤恩-克拉克他是亚利桑那大学的高级科学程序员。他拥有生物系统工程硕士学位,从事编程工作已有20多年。

    目录表

    1如何编写和测试一个Python程序

    2乌鸦窝:用弦工作

    3去野餐:处理清单

    4 Jump the Five: Working with dictionaries

    5 Howler: Working with files and STDOUT

    6字计数:读取文件和STDIN、迭代列表、设置字符串格式

    7 Gashlycrumb:在词典中查找条目

    8个苹果和香蕉:查找和替换

    9 Dial-a-Curse:从单词列表中生成随机侮辱

    10个电话:随机变异字符串

    11 Bottles of Beer Song: Writing and testing functions

    12赎金:文本随机大写

    13圣诞节十二天:算法设计

    14押韵:使用正则表达式创建押韵单词

    15《肯塔基修士》:更多正则表达式

    16加密者:随机重新排序单词的中间部分

    17个疯狂的Lib:使用正则表达式

    18 Gemtria:使用ASCII值对文本进行数字编码

    19日常工作:解析CSV文件、创建文本表输出

    20密码强度:生成安全且令人难忘的密码

    21 Tic-Tac-Toe: Exploring state

    22 Tic-Tac-Toe Redux:带有类型提示的交互式版本

  • 下载电子版:下载地址
  • 购买纸质版:亚马逊商城

    点击星号评分!

    平均分 0 / 5. 投票数: 0

    还没有投票!请为他投一票。

  • 推荐阅读

    评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册