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

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
Python

io.BufferedIOBase

Osnovni razred opisuje medpomnjene binarne tokove.

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

io.BytesIO

BytesIO hrani binarne podatke v pomnilniku in na začetku postavi kazalec na nič.

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

io.StringIO

StringIO hrani besedilo Unicode v pomnilniku in pri pisanju sprejema str.

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

io.TextIOBase

TextIOBase določa vmesnik besedilnih tokov, ki delajo z vrednostmi str.

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

iterator.__next__

Metoda iteratorja vrne naslednji element in po izčrpanju sproži StopIteration.

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

itertools.accumulate

Ustvari iterator zaporednih vmesnih rezultatov dvoargumentne funkcije.

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

itertools.batched

Zaporedne elemente bere v terke velikosti n, pri čemer mora biti n vsaj 1.

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

itertools.chain

Poveže vhode v iterator, ki zaporedoma izčrpa posamezne argumente.

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

itertools.combinations

Izbere r različnih položajev v njihovem vhodnem zaporedju.

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

itertools.combinations_with_replacement

Izbere r položajev z nepadajočimi indeksi in dovoli ponovitev istega položaja.

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

itertools.compress

Izbere podatke, povezane z izbirnikom z resnično logično vrednostjo.

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

itertools.count

Ustvari neskončen številski iterator od start s prirastkom step.

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

itertools.cycle

Pri prvem prehodu vsak element odda in shrani.

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

itertools.dropwhile

Preskoči začetne elemente, za katere je predikat resničen.

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

itertools.filterfalse

Izbere izvirne elemente, pri katerih je rezultat predikata logično neresničen.

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

itertools.groupby

Združi sosednje elemente z enakim ključem in vrne ključ z iteratorjem skupine.

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

itertools.islice

Sproti izbira položaje iteratorja.

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

itertools.pairwise

Tvori pare sosednjih elementov.

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

itertools.permutations

Ustvari urejene terke brez ponovne uporabe istega položaja.

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

itertools.product

Tvori kartezični produkt z enim elementom iz vsakega vhoda.

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

itertools.repeat

Pri vsakem odjemu vrne isti objekt.

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