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

str.count

Prešteje neprekrivajoče se pojavitve podniza v izbranem območju.

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

str.encode

Besedilo zakodira z izbranim kodiranjem in vrne bytes.

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

str.endswith

Preveri, ali se besedilo konča z natančno pripono; terka omogoča več možnosti.

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

str.find

Vrne najnižji indeks podniza znotraj meja iskanja.

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

str.format

V polja predloge vstavi pozicijske ali imenovane argumente in uporabi njihove specifikacije oblike.

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

str.format_map

Imenovana polja bere neposredno iz podane preslikave.

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

str.index

Vrne prvi indeks podniza v mejah iskanja, štet od začetka izvirnega besedila.

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

str.isalnum

Vrne bool za neprazno besedilo, ki vsebuje samo črke ali številske znake Unicode.

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

str.isalpha

Zahteva neprazno besedilo samo s črkami Unicode.

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

str.isdigit

Preveri, ali neprazen niz vsebuje samo števke Unicode.

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

str.isspace

Vrne True samo za neprazen niz belih znakov.

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

str.join

Združi nize iz iterabilnega objekta in med položaje vstavi ločilo, na katerem je metoda poklicana.

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

str.lower

Vrne besedilo v malih črkah Unicode.

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

str.lstrip

Z leve odstrani bele znake ali ob podanem chars vsak znak iz te množice.

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

str.removeprefix

Enkrat odstrani točno predpono na začetku besedila.

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

str.removesuffix

Enkrat odstrani točno pripono.

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

str.replace

Nadomesti neprekrivajoče se dobesedne pojavitve old z new.

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

str.rfind

Vrne največji začetni indeks podniza med start in end.

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

str.rsplit

Deli z desne. Privzeti sep=None uporablja skupine belih znakov, maxsplit=−1 pa števila rezov ne omeji.

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

str.rstrip

Z desne odstrani bele znake ali znake iz neobvezne množice chars.

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

str.split

Razdeli besedilo na seznam polj.

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

str.splitlines

Razdeli besedilo na vrstice. CRLF je ena meja, zato med one in two ni prazne vrstice.

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

str.startswith

Preveri natančen začetek besedila ali dela z neobveznima start in end, brez položaja end.

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

str.strip

Z obeh koncev odstrani bele znake ali posamične znake iz neobveznega chars.

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