Baza znanjaIzpitno središče
SLSlovenščina
Izberi jezik13

CKTIS / Python

Baza znanja — Python

Sintaksa, operatorji in programski pojmi. Poišči razlago, oglej si primer in nadaljuj učenje.

Število gesel: 583

Python

collections.OrderedDict

Ohrani vrstni red ključev in omogoča premikanje obstoječih vnosov.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.AbstractContextManager

Osnovni razred za sinhroni with ponuja `__enter__`, ki vrne upravljalnik.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.aclosing

Objekt z metodo aclose() ovije v območje async with.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.asynccontextmanager

Funkcijo asinhronega generatorja pretvori v tovarno za async with.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.AsyncExitStack

Zbira sinhrona in asinhrona čiščenja na skladu LIFO.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.closing

Omogoči with za vir s sinhrono metodo close().

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.ContextDecorator

Omogoča uporabo upravljalnika z `__enter__` in `__exit__` kot dekoratorja funkcije.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.contextmanager

Dekorira funkcijo generatorja z enim yield kot tovarno upravljalnikov with za enkratno uporabo.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.ExitStack

Upravlja med izvajanjem izbrano število virov.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.nullcontext

Nadomesti neobvezni upravljalnik konteksta in ob vstopu poda enter_result, privzeto None.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stderr

Začasno poveže sys.stderr z zapisljivim ciljem in ga poda prek as.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.redirect_stdout

Zajame izpis print z začasno zamenjavo sys.stdout.

Srednja · Python 3.14; repository image, production runtime not attested
Python

contextlib.suppress

Zatre izjeme navedenih razredov in podrazredov ter nadaljuje za blokom.

Srednja · Python 3.14; repository image, production runtime not attested
Python

cProfile.Profile

Objekt Profile zbira statistiko klicev, runcall pa vrne običajni rezultat funkcije.

Srednja · Python 3.14; repository image, production runtime not attested
Python

cProfile.run

run profilira ukaze v imenskem prostoru glavnega modula.

Srednja · Python 3.14; repository image, production runtime not attested
Python

cProfile.runctx

runctx profilira ukaze s podanim globalnim slovarjem in preslikavo lokalnih imen.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.Dialect

Združi nastavitve CSV v narečje za večkratno uporabo pri branju in pisanju.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.DictReader

Bere zapise kot slovarje po vrstnem redu stolpcev.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.DictWriter

Zapiše slovarje v besedilni tok po vrstnem redu obveznih fieldnames.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.reader

Bere iterabilen vir besedilnih vrstic in podaja sezname polj.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.Sniffer

Iz reprezentativnega vzorca besedila sklepa o narečju CSV.

Srednja · Python 3.14; repository image, production runtime not attested
Python

csv.writer

Zapiše vrstice polj v besedilni tok z metodo write().

Srednja · Python 3.14; repository image, production runtime not attested
Python

dataclasses.asdict

Z dict_factory pretvori primerek podatkovnega razreda v slovar imen in vrednosti polj.

Srednja · Python 3.14; repository image, production runtime not attested