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

ord()

Vráti číselnú hodnotu jedného znaku str alebo jedného bajtu v bytes či bytearray.

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

pow()

Umocní základ a voliteľne počíta modulo mod.

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

property()

Čítanie box.area volá getter s inštanciou self a dá 3 · 4 = 12.

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

repr()

Vráti text na kontrolu objektu pomocou `__repr__`.

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

reversed()

Vytvorí spätný iterátor pomocou `__reversed__` alebo dĺžky a indexovania sekvencie.

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

round()

Zaokrúhli číslo na zvolenú desatinnú pozíciu.

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

set()

Vytvorí meniteľnú množinu hašovateľných prvkov.

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

setattr()

Nastaví atribút pomenovaný reťazcom a vráti None.

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

slice()

Uloží začiatok, vylúčený koniec a krok pre neskorší výrez.

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

sorted()

Vráti nový zoznam usporiadaný porovnaním menší ako.

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

staticmethod()

Sprístupní funkciu v mennom priestore triedy bez automatického pridania self alebo cls.

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

str: textová reprezentácia objektu

str vytvára reťazec Unicode. Prevod čísla na text nevykonáva výpočet; prevod bajtov na text vyžaduje vedomý výber kódovania.

Základná · Python 3.14
Python

sum()

Sčíta prvky s počiatočným sčítancom start.

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

super()

Vytvorí zástupný objekt, ktorý hľadá za aktuálnou triedou v poradí vyhľadávania metód príjemcu.

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

tuple()

Vytvorí z iterovateľného objektu nemennú usporiadanú n-ticu.

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

type()

S jedným argumentom vráti skutočný typ objektu.

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

vars()

S argumentom získa `__dict__` objektu.

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

zip()

Pri iterácii združí zodpovedajúce prvky do n-tíc.

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

Kľúčové slovo as

Viaže meno podľa okolitého príkazu.

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

Kľúčové slovo assert

Overí diagnostický invariant, keď je `__debug__` pravdivé.

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

Kľúčové slovo async

Definícia async def bez yield vytvorí korutinovú funkciu, ktorej volanie vracia objekt korutiny bez spustenia tela.

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

Kľúčové slovo await

V korutine alebo asynchrónnom generátore získa výsledok či výnimku očakávateľného objektu.

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