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

anext()

Pokliče `__anext__` in vrne objekt, na katerega lahko čakamo z await.

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

any()

Preveri, ali ima vsaj en element resnično logično vrednost.

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

ascii()

Vrne predstavitev kot repr in znake zunaj ASCII nadomesti z ubežnimi zaporedji.

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

bin()

Zapiše celo število v dvojiškem sistemu kot niz s predpono 0b.

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

bool()

Vrne logično vrednost objekta.

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

breakpoint()

Pokliče trenutni sys.breakpointhook s podanimi argumenti in vrne njegov rezultat.

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

bytearray()

Ustvari spremenljivo polje bajtov.

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

bytes()

Ustvari nespremenljivo zaporedje bajtov.

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

callable()

Preveri, ali je mogoče poklicati objekt, denimo funkcijo, razred ali primerek, katerega tip določa `__call__`.

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

chr()

Ustvari niz z enim znakom iz celoštevilske kodne točke od 0 do vključno 0x10ffff.

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

classmethod()

Ob dostopu do metode kot prvi argument veže razred, tudi pri dostopu prek primerka.

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

compile()

Prevede besedilo, bajte ali AST za izbrani način.

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

complex()

Ustvari kompleksno število iz dveh realnih sestavin ali razčleni en sam niz.

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

delattr()

Odstrani imenovani atribut po pravilih `__delattr__` in ob uspehu vrne None.

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

dict()

Ustvari slovar iz preslikave, parov ključ–vrednost ali imenovanih argumentov.

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

dir()

Vrne urejen seznam imen za interaktivni pregled.

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

divmod()

Za cela števila vrne par navzdol zaokroženega količnika in ostanka.

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

enumerate()

Ustvari iterator parov števec–element, ki privzeto šteje od nič.

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

eval()

Pri izvornem besedilu ovrednoti en izraz v podanih imenskih prostorih.

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

exec()

Izvede zaupanja vredne stavke ali preveden objekt kode in vrne None.

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

filter()

Izbere izvirne elemente, za katere predikat vrne logično resnično vrednost.

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

float()

Iz števila ali niza ustvari število s plavajočo vejico.

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

format()

Vrne niz prek metode `__format__` tipa vrednosti.

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

frozenset()

Ustvari nespremenljivo množico, ki lahko sama služi kot ključ slovarja.

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