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

str.count

Spočíta neprekrývajúce sa výskyty podreťazca vo zvolenom rozsahu.

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

str.encode

Zakóduje text vo zvolenom kódovaní a vráti bytes.

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

str.endswith

Overí, či text končí presnou príponou; n-tica umožňuje viac alternatív.

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

str.find

Vráti najnižší index podreťazca v medziach hľadania.

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

str.format

Dosadí pozičné alebo pomenované argumenty do polí šablóny a použije ich formátovacie špecifikácie.

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

str.format_map

Číta pomenované polia priamo z dodaného mapovania.

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

str.index

Vráti prvý index podreťazca v medziach, počítaný od začiatku pôvodného textu.

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

str.isalnum

Vráti bool pre neprázdny text zložený len z písmen alebo číselných znakov Unicode.

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

str.isalpha

Vyžaduje neprázdny text zložený iba z písmen Unicode.

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

str.isdigit

Overí, či neprázdny reťazec obsahuje len číslice Unicode.

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

str.isspace

Vráti True iba pre neprázdny reťazec bielych znakov.

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

str.join

Spojí reťazce z iterovateľného objektu a vloží medzi pozície oddeľovač, na ktorom sa metóda volá.

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

str.lower

Vráti text prevedený na malé písmená Unicode.

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

str.lstrip

Zľava odstráni biele znaky alebo pri zadaní chars každý znak z tejto množiny.

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

str.removeprefix

Odstráni jeden presný prefix, ak sa ním text začína.

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

str.removesuffix

Odstráni jeden presný sufix. Z a.tar.tar a .tar vznikne a.tar, zatiaľ čo prázdny sufix zachová celý text.

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

str.replace

Nahradí neprekrývajúce sa doslovné výskyty old hodnotou new.

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

str.rfind

Vráti najvyšší začiatočný index podreťazca medzi start a end.

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

str.rsplit

Delí sprava. Predvolené sep=None používa skupiny bielych znakov a maxsplit=−1 neobmedzuje počet rezov.

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

str.rstrip

Sprava odstraňuje biele znaky alebo znaky z nepovinnej množiny chars.

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

str.split

Rozdelí text na zoznam polí. Pri (sep=None, maxsplit=-1) krajné biele znaky zmiznú a každá vnútorná skupina je jediným oddeľovačom.

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

str.splitlines

Rozdelí text na riadky. CRLF je jediná hranica, takže medzi one a two nevznikne prázdny riadok.

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

str.startswith

Overí presný začiatok textu či úseku s nepovinnými start a end bez pozície end.

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

str.strip

Z oboch koncov odstráni biele znaky alebo jednotlivé znaky z nepovinného chars.

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