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

CKTIS / Baza znanja

Baza znanja

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

Število gesel: 5788

Python

dict.values

Vrne živ pogled na vrednosti v vrstnem redu vstavljanja ključev.

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

function.__doc__

Ta atribut vsebuje dokumentacijski niz funkcije ali None, če niz manjka.

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

function.__name__

Atribut hrani preprosto ime funkcije iz njene definicije.

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

functools.cache

Shranjuje rezultate brez omejitve kot lru_cache(maxsize=None).

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

functools.cached_property

Prvo branje izračuna vrednost in jo pod istim imenom zapiše v zapisljivi `__dict__` primerka.

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

functools.cmp_to_key

Pretvori primerjalnik dveh elementov v enoargumentni ključ razvrščanja.

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

functools.lru_cache

Shrani rezultate po zgoščljivih ključih in ob zapolnitvi odstrani najdlje neuporabljen vnos.

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

functools.partial

Vrne klicljiv objekt z vnaprej vezanimi argumenti brez izvedbe func.

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

functools.partialmethod

V razredu opredeli deskriptor različice metode z vnaprej vezanimi argumenti.

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

functools.reduce

Združuje elemente z leve s klicanjem funkcije z akumulatorjem in naslednjim elementom.

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

functools.singledispatch

Izbere izvedbo po tipu prvega položajnega argumenta.

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

functools.singledispatchmethod

Izbere metodo po prvem položajnem argumentu za self ali cls.

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

functools.total_ordering

Dopolni manjkajoče primerjave urejenosti na primer iz `__lt__` in skladne enakosti `__eq__`.

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

functools.update_wrapper

Spremeni metapodatke ovoja in vrne isto funkcijo.

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

functools.wraps

Pri pisanju dekoratorja ga uporabimo na notranji ovojni funkciji.

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

generator.send

send poda rezultat ustavljenemu izrazu yield in vrne naslednjo oddano vrednost.

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

heapq.heapify

V linearnem času iz seznama ustvari minimalno kopico.

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

heapq.heappop

Odstrani in vrne najmanjši element veljavne minimalne kopice.

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

heapq.heappush

Vstavi element v prazen seznam ali veljavno minimalno kopico in vrne None.

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

heapq.heappushpop

Združi vstavljanje in odstranjevanje minimuma ter ohrani velikost kopice.

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

heapq.heapreplace

Odstrani dosedanji koren in shrani novi element v enako veliki kopici.

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

heapq.merge

Združi urejene vire v en iterator, ki podatke bere po potrebi.

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

heapq.nlargest

Izbere do n izvirnih elementov padajoče po ključu, na primer za lestvico.

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

heapq.nsmallest

Vrne do n izvirnih elementov naraščajoče po ključu, denimo najcenejše ponudbe.

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