Python One-Liners: Write Concise, Eloquent Python Like a Professional

0
(0)

Python One-Liners: Write Concise, Eloquent Python Like a Professional
 

  • Author:Christian Mayer
  • Length: 216 pages
  • Edition: 1
  • Publisher: No Starch Press
  • Publication Date: 2020-06-02
  • ISBN-10: 1718500505
  • ISBN-13: 9781718500501
  • Sales Rank: #316421 (See Top 100 Books)
  • Download:Register/Login to Download
  • Buy Print:Buy from amazon


    Book Description

    Python programmers will improve their computer science skills with these useful one-liners.

    Python One-Liners will teach you how to read and write “one-liners”: concise statements of useful functionality packed into a single line of code. You’ll learn how to systematically unpack and understand any line of Python code, and write eloquent, powerfully compressed Python like an expert.

    The book’s five chapters cover tips and tricks, regular expressions, machine learning, core data science topics, and useful algorithms. Detailed explanations of one-liners introduce key computer science concepts and boost your coding and analytical skills. You’ll learn about advanced Python features such as list comprehension, slicing, lambda functions, regular expressions, map and reduce functions, and slice assignments. You’ll also learn how to:

      Leverage data structures to solve real-world problems, like using Boolean indexing to find cities with above-average pollution
      Use NumPy basics such as array, shape, axis, type, broadcasting, advanced indexing, slicing, sorting, searching, aggregating, and statistics
      Calculate basic statistics of multidimensional data arrays and the K-Means algorithms for unsupervised learning
      Create more advanced regular expressions using grouping and named groups, negative lookaheads, escaped characters, whitespaces, character sets (and negative characters sets), and greedy/nongreedy operators
      Understand a wide range of computer science topics, including anagrams, palindromes, supersets, permutations, factorials, prime numbers, Fibonacci numbers, obfuscation, searching, and algorithmic sorting

    By the end of the book, you’ll know how to write Python at its most refined, and create concise, beautiful pieces of “Python art” in merely a single line.

    中文:

    书名:Python One-Liners: Write Concise, Eloquent Python Like a Professional

    通过这些有用的一行程序,Python程序员将提高他们的计算机科学技能。

    Python一行程序它将教您如何阅读和编写一行代码:压缩到一行代码中的有用功能的简明语句。您将学习如何系统地解压和理解任何一行Python代码,并像专家一样编写雄辩的、经过强大压缩的Python。

    这本书的五章涵盖了提示和技巧、正则表达式、机器学习、核心数据科学主题和有用的算法。一行程序的详细说明介绍了关键的计算机科学概念,并提高了您的编码和分析技能。您将了解一些高级的Python特性,如列表理解、切片、lambda函数、正则表达式、map和Reduce函数,以及切片赋值。您还将学习如何:

    *利用数据结构来解决现实世界的问题,比如使用布尔索引来查找污染高于平均水平的城市
    可以使用NumPy基础知识,如数组、形状、轴、类型、广播、高级索引、切片、排序、搜索、聚合和统计
    计算多维数据数组的基本统计量和用于无监督学习的K-Means算法
    我可以使用分组和命名组、负查找头、转义字符、空格、字符集(和负字符集)以及贪婪/非贪婪运算符创建更高级的正则表达式
    我了解广泛的计算机科学主题,包括字谜、回文、超集、排列、阶乘、素数、斐波纳契数、混淆、搜索和算法排序

    在这本书的最后,你将知道如何以最精致的方式编写Python,并在一行中创建简洁、美丽的Python艺术作品。

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

    点击星号评分!

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

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

  • 评论 抢沙发

    评论前必须登录!

     

    登录

    找回密码

    注册