LibCoder

Python Cookbook: Everyone can cook delicious recipes 300+

1C Agda Python
Python Cookbook: Everyone can cook delicious recipes 300+
Автор: Abella Hernando
Дата выхода: 2024
Издательство: Aluna Publishing House
Количество страниц: 474
Размер файла: 1,2 МБ
Тип файла: PDF
Добавил: LibCoder
Оглавление
Introduction....20 Abstract Classes....21 Collection of similar objects....22 Conformance checking (is, as)....23 Constructor requirements....24 Declaration and initialization....25 Inheritance of abstract classes....26 Methods requirements....27 Multiple inheritance....28 Properties requirements....29 Subscript requirements....30 Algorithms....31 Sorting algorithms:....32 Bubble Sort....33 Counting Sort....34 Merge Sort....35 Quick Sort....36 Radix Sort....37 Searching algorithms:....38 Binary Search....39 Fast Linear Search....40 Interpolation Search....41 Linear Search....42 Changes in new versions....43 Alias type syntax....44 Comparison operators....45 Context Variables....46 Data classes....47 Dictionary Merge....48 Exceptions handling....49 Extended Iterable Unpacking....50 Features of f-strings....51 Guaranteed dictionary order....52 IANA time zone support....53 Integer division....54 Methods of dictionaries....55 New Type Union Operator....56 New string methods....57 Octal literals....58 Parenthesized context managers....59 Simplified asynchronous call....60 Throw an exception....61 Type Hinting Generics....62 Unicode strings....63 Variables for the ‘for’ loop....64 Walrus Operator :=....65 f-strings support....67 map and filter functions....68 match statements....69 print function....70 range function....71 Classes....72 Check for reference equality....73 Constructors:....74 Call of the own constructor....75 Call of the parent constructor....76 Default constructor....76 Optional parameter values....78 Replacement of the parent constructor....79 With paramenters....80 Without any paramenters....81 Create a copy of the object....82 Definition and initialization....83 Descriptors....84 Destructor....86 Events....87 Fields....89 Inheritance:....90 Abstract classes....91 Base class....93 Compability check (is)....95 Interface inheritance....97 Method override....99 Private class members....100 Property override....101 Protected class members....102 Reduction to the base type....103 Methods:....104 Array of parameters....105 Class methods....106 In/Out parameters....107 Multiple return values....108 Optional parameter values....109 Variable parameters....110 With return value....111 Without any parameters....112 Without any return value....113 Nested class....114 Properties:....115 Computed properties....116 Lazy properties....117 Read-Only properties: Computed properties....118 Read-Only properties: Stored properties....119 Stored properties....120 Type properties....121 Subscripts (indexer methods):....122 With generic parameter....123 With multiple parameter....124 With one parameter....125 Type member....126 Control Flow....128 if/else statements:....129 Complex conditions....130 Is not valid example....131 Ternary operator....132 Valid example....133 Match statements:....134 Different types of values....135 Example with a tuple....136 Match if conditions....137 Simple conditions....138 Interruption of a control flow:....139 “break statement”....140 “continue statement”....141 With return value....142 With return value....143 Loops:....144 “do-while” loop....145 “for in range” loop....146 “for-in” loop....147 “while” loop....148 Endless loop....149 Enumerations....150 Base member value....151 Base type....152 Conversion from a string....153 Converting to a String....154 Definition and initialization....155 Enums comparison....156 Explicitly set base value....157 Get the list of values....158 Initializing from a base value....159 Exceptions Handling....160 Catch all exceptions....161 Catch the specific exception....162 Define an exception type....163 Guaranteed code execution....164 If no exception occurred....165 Method throwing an exception....166 Re-throw exceptions....167 Throw an exception....168 Extensions....169 Adding object methods....170 Functions....171 Array of parameters....172 In/Out parameters....173 Multiple return values....174 Optional parameter values....175 Out parameters....176 Recursion....177 Variable parameters....178 With return value....179 Without any parameters....180 Without any return value....181 Generic Types....182 Class conformity....183 Default value....184 Generic classes....185 Generic collections....186 Generic methods....187 Interface conformity....188 Substitution principle....189 Initializing of Types....190 Classes:....191 With a constructor....192 Without any constructor....193 Collections:....194 Dictionaries....195 Lists....196 Set....197 Enumerations....198 Simple types....199 Structures:....201 With a constructor....202 Without any constructor....203 Lambda Expressions....204 Capture of variables....205 Currying....206 Function as a parameter....207 Function as a return value....208 Memoization....209 Memoization (Recursive)....211 Modify captured variables....212 Recursion....213 Void function as a parameter....214 With multiple operators....215 With multiple parameters....216 With one parameter....217 Without return value....218 Lists and Collections....219 Dictionaries:....220 Adding and removing of elements....221 Amount of elements....222 Checking of presence of a key....223 Converting a dictionary....224 Default value....225 Dictionaries initialization....226 Dictionary Merge....227 Filtering of elements....228 Get value by key....229 Getting keys by value....230 Getting of a list of keys....231 Getting of a list of values....232 Grouping collection....233 Iterating over a dictionary....234 Sort dictionary by keys....235 Sort dictionary by values....236 Iterators and generators:....237 Reverse generator....238 Reverse iterator....239 Simple generator....240 Simple iterator....241 Lists:....242 Adding and removing of elements....243 Arrays comparing....244 Checking equality of lists....245 Converting of a list....246 Dynamic lists....247 Filtering of elements....248 Finding a list item....249 Getting Min and Max values....250 Getting part of a list....251 Getting unique values....252 Iterating over an array (recursive)....253 Iterating over a list....254 Iterating over a list with index....255 List copying....256 List length....257 List with a default value....258 List initialization....259 List merging....260 Sorting of elements....261 Sum of elements....262 every() and some() methods....263 Sets:....264 Adding and removing of elements....265 Converting of a set....266 Filtering of elements....267 Iterating over a set....268 Search for an element....269 Sets comparison....270 Sets initialization....271 Sets operations....272 Sorting of elements....273 Stack (LIFO)....274 Multi-threaded Operations....275 Keywords "async" and "await"....276 Start of a new thread....277 Start of a new thread and waiting....278 Synchronization with blocking....279 Thread task object....281 Operators Overloading....283 Binary operators....284 Comparison operators....285 Custom operators....287 Equivalence operators....289 Unary operators....290 Design Patterns....291 Creational patterns:....292 Abstract factory....293 Builder....296 Factory method....299 Prototype....301 Singleton....303 Structural patterns:....304 Adapter (Composition)....305 Adapter (Inheritance)....307 Bridge....309 Composite....311 Decorator....313 Facade....315 Flyweight....317 Proxy....319 Behavioral patterns:....321 Chain of responsibility....322 Command....324 Interpreter....326 Iterator....328 Mediator....330 Memento....332 Observer....334 State....336 Strategy....338 Template method....340 Visitor....342 Regular Expressions....344 Check match string....345 Check match whole string....346 Named groups....347 Regular expression options....348 Replacement of the match....350 Search all matches....351 Search for a match....352 Simple Types....353 Boolean:....354 Conversion from a string....355 Converting to a string....356 Getting values....357 Logical operations....358 Character type:....359 Converting to a number and back....360 Converting to a string....361 Escape characters....362 Getting from a string....364 Special Characters....365 Date and time:....366 Comparison of dates....367 Conversion from a string....368 Converting to a string....369 Date changing....370 Date initialization....371 Getting of the current date....372 Getting of year, month, day....373 The interval between the dates....374 Double and Float:....375 Arithmetic operations....376 Conversion from a string....377 Converting to a string....378 Converting to integer....379 Getting random values....380 Number comparison....381 Rounding and truncating....382 Integer:....383 Arithmetic operations....384 BigInteger....385 Bitwise operations....386 Conversion from a string....387 Converting to a string....388 Getting random values....389 Numeral system....390 Mathematical operations:....391 Decimal logarithm....392 Exponentiation....393 Logarithm....394 Sine, cosine and tangent....395 Square root....396 min and max values....397 Strings:....398 Change the case of characters....399 Character replacement....400 Characters count....401 Converting to a number....402 Empty strings....403 Escaping characters....404 Getting substring....405 Iterating over a string....406 Removing spaces....407 Replace multiple characters....408 Split into an array....409 String multiplication....410 String padding....411 String comparison....412 String concatenating....413 String interpolation....414 Strings list concatenating....415 Substring index....416 Substring inserting....417 Substring removing....418 Substring replacement....419 Substring searching....420 Tuple....421 Work with Color....422 Color to HTML color....423 Color to RGB....424 HTML color to RGB....425 RGB to Color....426 RGB to HTML color....427 Work with Database (DB)....428 Connect to the DB:....429 Connect to Access....430 Connect to FireBird....431 Connect to MySql....432 Connect to Oracle....433 Connect to PostgreSQL....434 Connect to SQL Server....435 Connect to SQLite....436 Execute SQL command....437 Execute SQL query....438 SQL query with parameters....439 Work with Files....440 Archives:....441 Packing a zip file....442 Packing a zip file with a password....443 Unpacking a zip file....444 Basic operations:....445 Check if the file exists....446 Combining two parts of a path....447 Copy a directory....448 Create a directory....449 Delete a directory....450 Delete a directory with data....451 Delete a file....452 File copying....453 File moving....454 Get the working directory....455 Getting file properties....456 List of files in the directory....457 Binary files:....458 Read array from a file....459 Read dictionary from a file....460 Reading a binary file....461 Write array to a file....462 Write a directory to a file....463 Writing a binary file....464 Text files:....465 Append text to a file....466 Read file line by line....467 Read from a file....468 Write to a file....469 XML files:....470 Reading XML file....471 Writing XML file....472

Описание

Ниже — практический обзор по теме «will».

Learn to cook delicious and fun recipes in Python. codes that will help you grow in the programming environment using this wonderful language.Some of the recipes you will create will be related to: Algorithms, classes, flow control, functions, design patterns, regular expressions, working with databases, and many more things.Learning these recipes will give you a lot of confidence when you are creating great programs and you will have more understanding when reading live code.

На этом основные моменты по теме закрыты.

will recipes python cook delicious more when cookbook

Частые вопросы

Можно ли скачать «Python Cookbook: Everyone can cook delicious recipes 300+» бесплатно?

Да, «Python Cookbook: Everyone can cook delicious recipes 300+» доступна для бесплатного скачивания на нашем сайте в формате PDF. Ссылка на файл находится на этой странице.

В каком формате и какого размера файл?

Книга предоставляется в формате PDF, размер файла 1,2 МБ.

Кто автор и когда вышла книга?

автор — Abella Hernando, издательство Aluna Publishing House, год выпуска 2024, 474 страниц.

О чём книга «Python Cookbook: Everyone can cook delicious recipes 300+»?

Learn to cook delicious and fun recipes in Python.

Похожие материалы