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

math.pi

Poskytuje ako float aproximáciu pomeru obvodu kružnice k priemeru.

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

math.prod

Násobí číselné hodnoty počnúc činiteľom start, ktorý možno zadať iba menom.

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

math.sin

Počíta sínus uhla v radiánoch, zvislú súradnicu na jednotkovej kružnici.

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

math.sqrt

Vypočíta nezápornú reálnu druhú odmocninu ako float.

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

math.tan

Počíta tangens uhla v radiánoch ako sínus delený kosínusom.

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

math.trunc

Odreže desatinnú časť a pre float vráti int.

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

object.__class__

Pri bežnej inštancii atribút odkazuje na objekt jej triedy.

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

object.__enter__

Vstupná metóda sa vykoná pred telom with a výsledok sa naviaže na cieľ za as.

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

object.__eq__

Metóda rovnosti môže porovnať vlastné dáta alebo pre nepodporovaný typ vrátiť NotImplemented.

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

object.__exit__

Po úspešnom vstupe výstupná metóda uzavrie kontext a môže rozhodnúť o šírení výnimky.

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

object.__gt__

Metóda implementuje ostré porovnanie väčšie než a môže odmietnuť pomocou NotImplemented.

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

object.__init__

Inicializátor nastavuje stav už vytvorenej inštancie a musí vrátiť None.

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

object.__iter__

Iteračná metóda poskytne iterátor cez prvky objektu.

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

object.__le__

Metóda definuje menšie alebo rovné a môže vyjadriť čiastočné usporiadanie.

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

object.__lt__

Metóda ostro menšie než poskytuje porovnanie používané pri radení.

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

object.__repr__

Metóda reprezentácie vráti reťazec určený na jednoznačné rozpoznanie objektu pri ladení.

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

object.__str__

Prevod na reťazec poskytuje čitateľnú podobu objektu na zobrazenie.

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

operator.itemgetter

Vytvorí volateľný objekt, ktorý neskôr vyberie položky zo svojho operandu.

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

pstats.Stats — analýza výsledkov profilovania

pstats.Stats analyzuje údaje profilera: triedi štatistiky funkcií a vytvára reporty. Samotné vykonávanie nemeria; prijíma uložený profil alebo objekt profilera.

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

pstats.Stats.stats — nespracované štatistiky profilovania

pstats.Stats.stats je slovník profilovacích údajov, ktorého kľúče tvorí názov súboru, číslo riadka a názov funkcie. Umožňuje priamo čítať počty volaní, vlastný čas, kumulatívny čas a informácie o volajúcich funkciách bez analýzy textového výpisu.

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

re.compile

Skompiluje výraz do opakovane použiteľného objektu Pattern so vzorom a príznakmi.

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

re.escape

Ošetrí metaznaky vo fragmente určenom na doslovné hľadanie vo vzore.

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

re.findall

Zhromažďuje zľava neprekrývajúce sa zhody vrátane prázdnych do zoznamu.

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

re.finditer

Sprístupňuje po sebe idúce objekty Match iterátorom na čítanie rozsahov a skupín bez vytvorenia zoznamu.

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