Znalostná bázaCentrum skúšok
SKSlovenčina
Vybrať jazyk13

CKTIS / Python

Znalostná báza — Python

Syntax, operátory a pojmy programovania. Nájdi vysvetlenie, prezri si príklad a pokračuj v učení.

Počet hesiel: 583

Python

dict.popitem

Odoberie a vráti poslednú vloženú dosiaľ prítomnú dvojicu podľa LIFO.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

dict.setdefault

Vráti existujúcu hodnotu alebo vloží predvolenú iba pri chýbajúcom kľúči.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

dict.update

Zapíše do existujúceho slovníka väzby z mapovania, iterovateľných dvojíc alebo pomenovaných argumentov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

dict.values

Vráti živý pohľad na hodnoty v poradí vloženia kľúčov.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

function.__doc__

Tento atribút obsahuje dokumentačný reťazec funkcie alebo None, ak chýba.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

function.__name__

Atribút obsahuje jednoduché meno funkcie z jej definície.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.cache

Ukladá výsledky bez obmedzenia ako lru_cache(maxsize=None).

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.cached_property

Prvé čítanie vypočíta hodnotu a uloží ju pod rovnakým menom do zapisovateľného `__dict__` inštancie.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.cmp_to_key

Prevedie komparátor dvoch prvkov na jednoargumentový kľúč radenia.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.lru_cache

Uloží výsledky podľa hašovateľných kľúčov a pri zaplnení odstráni najdlhšie nepoužitú položku.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.partial

Vráti volateľný objekt s vopred zadanými argumentmi bez spustenia func.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.partialmethod

Definuje v triede deskriptor variantu metódy s pevnými argumentmi.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.reduce

Skladá prvky zľava volaním funkcie s akumulátorom a ďalším prvkom.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.singledispatch

Vyberie implementáciu podľa typu prvého pozičného argumentu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.singledispatchmethod

Vyberie metódu podľa prvého pozičného argumentu za self alebo cls.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.total_ordering

Doplní chýbajúce porovnania usporiadania napríklad z `__lt__` a zodpovedajúcej rovnosti `__eq__`.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.update_wrapper

Zmení metadáta obalu a vráti tú istú funkciu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

functools.wraps

Používa sa na vnútornú obaľovaciu funkciu pri písaní dekorátora.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

generator.send

send odovzdá výsledok pozastavenému výrazu yield a vráti ďalšiu vydanú hodnotu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

heapq.heapify

V lineárnom čase vytvorí zo zoznamu minimovú haldu.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

heapq.heappop

Odoberie a vráti najmenší prvok platnej minimovej haldy.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

heapq.heappush

Vloží prvok do prázdneho zoznamu alebo platnej minimovej haldy a vráti None.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

heapq.heappushpop

Spojí vloženie prvku s odobratím minima a zachová veľkosť haldy.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested
Python

heapq.heapreplace

Odoberie pôvodný koreň a ponechá nový prvok v halde rovnakej veľkosti.

Stredne pokročilá · Python 3.14; repository image, production runtime not attested