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

itertools.starmap

Pri odjemu vsako vrstico razpakira v položajne argumente funkcije.

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

itertools.takewhile

Oddaja začetne elemente, dokler je predikat resničen.

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

itertools.tee

Privzeto ustvari dva iteratorja z ločenima položajema nad istim virom.

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

itertools.zip_longest

Povezuje ustrezne položaje do izčrpanja najdaljšega vhoda.

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

list.append

Na konec obstoječega seznama doda natanko en objekt.

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

list.clear

Odstrani vse elemente obstoječega seznama in vrne None.

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

list.copy

Ustvari plitvo kopijo, torej nov seznam s sklici na iste elemente.

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

list.count

Prešteje elemente, ki so isti objekt kot iskani ali se z njim primerjajo kot enaki.

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

list.extend

Zaporedoma dodaja elemente iterabilnega objekta v obstoječi seznam.

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

list.index

Vrne indeks od nič prvega enakega elementa; neobvezna start in stop omejita iskanje brez položaja stop.

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

list.insert

Vstavi pred izbrani položaj in skrajne indekse omeji na razpoložljiva mesta vstavljanja.

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

list.pop

Odstrani in vrne element na indeksu.

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

list.remove

Odstrani prvi element, ki je isti objekt kot iskani ali se z njim primerja kot enak.

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

list.reverse

Obrne položaje v obstoječem seznamu brez primerjanja elementov.

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

list.sort

Razvrsti seznam na mestu in vrne None.

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

logging.basicConfig

basicConfig z level nastavi prag korenskega zapisovalnika ter določi tok in obliko izpisa.

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

logging.critical

critical korenskemu zapisovalniku sporoči dogodek ravni CRITICAL s številko 50.

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

logging.debug

debug pošlje diagnostiko ravni DEBUG (10) korenskemu zapisovalniku.

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

logging.error

error korenskemu zapisovalniku sporoči dogodek ravni ERROR (40).

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

logging.exception

exception zapiše dogodek ERROR s privzetim exc_info=True.

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

logging.Formatter

Formatter sestavi besedilo iz atributov zapisa, kot sta levelname in message.

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

logging.getLogger

getLogger vrne v tolmaču za isto ime isti zapisovalnik, brez imena pa korenskega.

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

logging.info

info beleži običajen napredek na ravni INFO (20).

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