Baza wiedzyCentrum egzaminacyjne
PLPolski
Wybierz język13

CKTIS / Python

Baza wiedzy — Python

Składnia, operatory i pojęcia programowania. Znajdź wyjaśnienie, sprawdź przykład i wróć do nauki.

Liczba haseł: 583

Python

collections.OrderedDict

Zachowuje kolejność kluczy i pozwala przenosić istniejące wpisy.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.AbstractContextManager

Klasa bazowa synchronicznego with dostarcza `__enter__` zwracające zarządcę.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.aclosing

Obejmuje obiekt z metodą aclose() zakresem async with.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.asynccontextmanager

Przekształca funkcję asynchronicznego generatora w fabrykę zarządców async with.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.AsyncExitStack

Gromadzi synchroniczne i asynchroniczne operacje sprzątania na stosie LIFO.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.closing

Pozwala użyć with dla zasobu udostępniającego synchroniczne close().

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.ContextDecorator

Pozwala udekorować funkcję instancją zarządcy implementującego `__enter__` i `__exit__`.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.contextmanager

Dekoruje funkcję generatora z jednym yield, tworząc fabrykę jednorazowych zarządców with.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.ExitStack

Zarządza zmienną liczbą zasobów wybranych w czasie działania.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.nullcontext

Zastępuje opcjonalnego zarządcę kontekstu i przy wejściu oddaje enter_result, domyślnie None.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stderr

Tymczasowo wiąże sys.stderr z innym zapisywalnym strumieniem i przekazuje go przez as.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stdout

Przechwytuje wyjście print przez tymczasową podmianę sys.stdout.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

contextlib.suppress

Tłumi wyjątki podanych klas i podklas, po czym wykonanie trwa za blokiem.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

cProfile.Profile

Obiekt Profile zbiera statystyki wywołań, a runcall zwraca zwykły wynik funkcji.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

cProfile.run

run profiluje instrukcje w przestrzeni nazw modułu głównego.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

cProfile.runctx

runctx profiluje instrukcje z podanym słownikiem globalnym i lokalnym odwzorowaniem nazw.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.Dialect

Grupuje ustawienia pliku CSV we wspólnym dialekcie przeznaczonym dla czytnika i zapisu.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.DictReader

Odczytuje rekordy jako słowniki w kolejności nazw kolumn.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.DictWriter

Zapisuje słowniki do strumienia tekstowego w kolejności wymaganych fieldnames.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.reader

Czyta iterowalne źródło wierszy tekstowych i zwraca kolejne listy pól.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.Sniffer

Rozpoznaje dialekt na podstawie reprezentatywnej próbki tekstu.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

csv.writer

Zapisuje wiersze pól do strumienia tekstowego obsługującego write().

Średniozaawansowany · Python 3.14; repository image, production runtime not attested
Python

dataclasses.asdict

Przekształca instancję klasy danych w słownik nazw pól i wartości za pomocą dict_factory.

Średniozaawansowany · Python 3.14; repository image, production runtime not attested