Книги и журналы » Компьютерная литература » Программирование (книги)
Python How-ToГод издания: 2023
Автор: Yong Cui
Издательство: Manning
ISBN: 978-1617299742
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 506
Описание: Have you ever asked yourself, “How do I do that in Python?” If so, you’ll love this practical collection of the most important Python techniques.
Python How-To includes over 60 detailed answers to questions like:
How do I join and split strings?
How do I access dictionary keys, values, and items?
How do I set and use the return value in function calls?
How do I process JSON data?
How do I create lazy attributes to improve performance?
How do I change variables in a different namespace?
…and much more!
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
preface xiv
acknowledgments xvi
about this book xvii
about the author xxi
about the cover illustration xxii
1 Developing a pragmatic learning strategy 1
PART 1 USING BUILT-IN DATA MODELS 11
2 Processing and formatting strings 13
3 Using built-in data containers 50
4 Dealing with sequence data 82
5 Iterables and iterations 107
PART 2 DEFINING FUNCTIONS 139
6 Defining user-friendly functions 141
7 Using functions beyond the basics 173
PART 3 DEFINING CLASSES 201
8 Defining user-friendly classes 203
9 Using classes beyond the basics 238
PART 4 MANIPULATING OBJECTS AND FILES 271
10 Fundamentals of objects 273
11 Dealing with files 304
12 Logging and exception handling 337
13 Debugging and testing 367
PART 6 BUILDING A WEB APP 391
14 Completing a real project 393
solutions to the challenges 431
index 465
Appendices A–E can be found in the digital and online versions of this book.
[/spoiler]