Python Cookbook, Third edition, Beazley D., Jones B., 2013.
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.
Handling HTML and XML Entities in Text.
Proper escaping of special characters is an easily overlooked detail of generating HTML or XML. This is especially true if you’re generating such output yourself using print() or other basic string formatting features. Using a utility function such as html.es cape() is an easy solution.
If you need to process text in the other direction, various utility functions, such as xml.sax.saxutils.unescape(), can help. However, you really need to investigate the use of a proper parser. For example, if processing HTML or XML, using a parsing module such as html.parser or xml.etree.ElementTree should already take care of details related to replacing entities in the input text for you.
Contents.
Preface.
1. Data Structures and Algorithms.
2. Strings and Text.
3. Numbers, Dates, and Times.
4. Iterators and Generators.
5. Files and I/O.
6. Data Encoding and Processing.
7. Functions.
8. Classes and Objects.
9. Metaprogramming.
10. Modules and Packages.
11. Network and Web Programming.
12. Concurrency.
13. Utility Scripting and System Administration.
14. Testing, Debugging, and Exceptions.
15. C Extensions.
A. Further Reading.
Index.
Бесплатно скачать электронную книгу в удобном формате, смотреть и читать:
Скачать книгу Python Cookbook, Third edition, Beazley D., Jones B., 2013 - fileskachat.com, быстрое и бесплатное скачивание.
Скачать pdf
Ниже можно купить эту книгу по лучшей цене со скидкой с доставкой по всей России.Купить эту книгу
Скачать - pdf - Яндекс.Диск.
Дата публикации:
Теги: учебник по программированию :: программирование :: Beazley :: Jones
Смотрите также учебники, книги и учебные материалы:
Следующие учебники и книги:
- Программирование для нормальных с нуля на языке Python, часть 2, Сысоева М.В., Сысоев И.В., 2023
- Алгоритмы оптимизации, Кохендерфер М.Д., Уилер Т.А., 2020
- Ruby Cookbook, 2E, Carlson L., Richardson L., 2010
- Resilience and Reliability on AWS, Geurtsen J., Paganelli F., 2013
Предыдущие статьи:
- JavaScript and jQuery, Interactive Front-End Web Development, Duckett J., 2014
- Сила JavaScript, 68 способов эффективного использования JS, Херман Д., 2013
- Алгоритмы и структуры обработки информации, Курносов М.Г., Берлизов Д.М., 2019
- JavaScript для профессионалов, Резиг Д., Фергюсон Р., Пакстон Д., 2016