База знанияИзпитен център
BGБългарски
Избери език13

CKTIS / Python

База знания — Python

Синтаксис, оператори и понятия от програмирането. Намери обяснение, разгледай пример и продължи да учиш.

Брой понятия: 583

Python

collections.OrderedDict

Запазва реда на ключовете и позволява преместване на съществуващи записи.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.AbstractContextManager

Базовият клас за синхронен with дава `__enter__`, който връща мениджъра.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.aclosing

Обхваща обект с метод aclose() в блок async with.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.asynccontextmanager

Преобразува функция на асинхронен генератор във фабрика за async with.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.AsyncExitStack

Събира синхронни и асинхронни операции за почистване в стек LIFO.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.closing

Позволява with за ресурс със синхронен close().

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.ContextDecorator

Позволява мениджър с `__enter__` и `__exit__` да се използва като декоратор на функция.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.contextmanager

Декорира функция на генератор с един yield като фабрика за еднократни мениджъри на with.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.ExitStack

Управлява променлив брой ресурси, избрани при изпълнение.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.nullcontext

Замества незадължителен мениджър на контекст и при вход дава enter_result, по подразбиране None.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stderr

Временно свързва sys.stderr със записваема цел и я предоставя чрез as.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stdout

Прихваща изхода на print чрез временно заместване на sys.stdout.

Средно · Python 3.14; repository image, production runtime not attested
Python

contextlib.suppress

Потиска изключенията от посочените класове и подкласове и продължава след блока.

Средно · Python 3.14; repository image, production runtime not attested
Python

cProfile.Profile

Обектът Profile събира статистика за извикванията, а runcall връща обичайния резултат на функцията.

Средно · Python 3.14; repository image, production runtime not attested
Python

cProfile.run

run профилира инструкции в пространството от имена на главния модул.

Средно · Python 3.14; repository image, production runtime not attested
Python

cProfile.runctx

runctx профилира инструкции с подадения глобален речник и съответствие на локалните имена.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.Dialect

Обединява настройките на CSV в диалект за многократно четене и записване.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.DictReader

Чете записи като речници по реда на колоните.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.DictWriter

Записва речници в текстов поток по реда на задължителните fieldnames.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.reader

Чете итеруем източник на текстови редове и дава списъци от полета.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.Sniffer

Определя диалекта по представителна текстова извадка.

Средно · Python 3.14; repository image, production runtime not attested
Python

csv.writer

Записва редове от полета в текстов поток с метод write().

Средно · Python 3.14; repository image, production runtime not attested
Python

dataclasses.asdict

Чрез dict_factory преобразува екземпляр на клас за данни в речник от имена и стойности на полетата.

Средно · Python 3.14; repository image, production runtime not attested