,

Python Cookbook

Recipes for Mastering Python 3

Paperback Engels 2013 3e druk 9781449340377
€ 74,93
Levertijd ± 16 werkdagen
Gratis verzonden

Samenvatting

If you need help writing programs in Python 3, or want to update older Python 2 code, this book is just the ticket. Packed with practical recipes written and tested with Python 3.3, this unique cookbook is for experienced Python programmers who want to focus on modern tools and idioms.

Inside, you'll find complete recipes for more than a dozen topics, covering the core Python language as well as tasks common to a wide variety of application domains. Each recipe contains code samples you can use in your projects right away, along with a discussion about how and why the solution works.

Topics include:
- Data Structures and Algorithms
- Strings and Text
- Numbers, Dates, and Times
- Iterators and Generators
- Files and I/O
- Data Encoding and Processing
- Functions
- Classes and Objects
- Metaprogramming
- Modules and Packages
- Network and Web Programming
- Concurrency
- Utility Scripting and System Administration
- Testing, Debugging, and Exceptions
- C Extensions

Specificaties

ISBN13:9781449340377
Taal:Engels
Bindwijze:paperback
Aantal pagina's:687
Uitgever:O'Reilly
Druk:3
Verschijningsdatum:25-5-2013
Hoofdrubriek:IT-management / ICT

Lezersrecensies

Wees de eerste die een lezersrecensie schrijft!

Inhoudsopgave

Preface

1. Data Structures and Algorithms
-Unpacking a Sequence into Separate Variables
-Unpacking Elements from Iterables of Arbitrary Length
-Keeping the Last N Items
-Finding the Largest or Smallest N Items
-Implementing a Priority Queue
-Mapping Keys to Multiple Values in a Dictionary
-Keeping Dictionaries in Order
-Calculating with Dictionaries
-Finding Commonalities in Two Dictionaries
-Removing Duplicates from a Sequence while Maintaining Order
-Naming a Slice
-Determining the Most Frequently Occurring Items in a Sequence
-Sorting a List of Dictionaries by a Common Key
-Sorting Objects Without Native Comparison Support
-Grouping Records Together Based on a Field
-Filtering Sequence Elements
-Extracting a Subset of a Dictionary
-Mapping Names to Sequence Elements
-Transforming and Reducing Data at the Same Time
-Combining Multiple Mappings into a Single Mapping

2. Strings and Text
-Splitting Strings on Any of Multiple Delimiters
-Matching Text at the Start or End of a String
-Matching Strings Using Shell Wildcard Patterns
-Matching and Searching for Text Patterns
-Searching and Replacing Text
-Searching and Replacing Case-Insensitive Text
-Specifying a Regular Expression for the Shortest Match
-Writing a Regular Expression for Multiline Patterns
-Normalizing Unicode Text to a Standard Representation
-Working with Unicode Characters in Regular Expressions
-Stripping Unwanted Characters from Strings
-Sanitizing and Cleaning Up Text
-Aligning Text Strings
-Combining and Concatenating Strings
-Interpolating Variables in Strings
-Reformatting Text to a Fixed Number of Columns
-Handling HTML and XML Entities in Text
-Tokenizing Text
-Writing a Simple Recursive Descent Parser
-Performing Text Operations on Byte Strings

3. Numbers, Dates, and Times
-Rounding Numerical Values
-Performing Accurate Decimal Calculations
-Formatting Numbers for Output
-Working with Binary, Octal, and Hexadecimal Integers
-Packing and Unpacking Large Integers from Bytes
-Performing Complex-Valued Math
-Working with Infinity and NaNs
-Calculating with Fractions
-Calculating with Large Numerical Arrays
-Performing Matrix and Linear Algebra Calculations
-Picking Things at Random
-Converting Days to Seconds, and Other Basic Time Conversions
-Determining Last Friday's Date
-Finding the Date Range for the Current Month
-Converting Strings into Datetimes
-Manipulating Dates Involving Time Zones
Afgekapt op 63 regels

Managementboek Top 100

€ 74,93
Levertijd ongeveer 16 werkdagen
Gratis verzonden

Rubrieken

Producten

    Auteurs

      Trefwoorden

        Artikelen

          Python Cookbook