WissensdatenbankPrüfungszentrum
DEDeutsch
Sprache wählen13

CKTIS / Python

Wissensdatenbank — Python

Syntax, Operatoren und Programmierkonzepte. Finde eine Erklärung, sieh dir ein Beispiel an und lerne weiter.

Einträge: 583

Python

str.count

Zählt nicht überlappende Vorkommen einer Teilzeichenkette im gewählten Bereich.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.encode

Kodiert Text in der gewählten Kodierung und liefert bytes.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.endswith

Prüft, ob der Text mit einem exakten Suffix endet; ein Tupel erlaubt mehrere Alternativen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.find

Liefert den kleinsten Index eines passenden Teilstrings innerhalb der Suchgrenzen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.format

Setzt Positions- oder Schlüsselwortargumente in die Vorlagenfelder ein und verwendet deren Formatspezifikationen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.format_map

Liest benannte Vorlagenfelder direkt aus dem übergebenen Mapping.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.index

Liefert den ersten Teilstringindex im Suchbereich, gezählt vom Anfang des Originals.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.isalnum

Liefert bool für nichtleeren Text aus Unicode-Buchstaben oder Zahlzeichen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.isalpha

Verlangt nichtleeren Text ausschließlich aus Unicode-Buchstaben.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.isdigit

Prüft, ob nichtleerer Text nur Unicode-Ziffern enthält. ² ist eine Ziffer, aber keine Dezimalziffer: isdigit ergibt True und isdecimal False.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.isspace

Ergibt True nur für nichtleeren Text aus Leerraumzeichen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.join

Verbindet Zeichenketten aus einem Iterierbaren mit dem aufrufenden Trenntext zwischen den Positionen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.lower

Erzeugt Text in Unicode-Kleinschreibung.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.lstrip

Entfernt links Leerraum oder bei angegebenem chars jedes Zeichen aus dieser Menge.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.removeprefix

Entfernt ein exaktes Präfix einmal, sofern der Text damit beginnt.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.removesuffix

Entfernt einmal ein exaktes Suffix.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.replace

Ersetzt nicht überlappende literale Treffer von old durch new.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.rfind

Liefert den höchsten Startindex eines Teilstrings zwischen start und end.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.rsplit

Trennt von rechts. Standardmäßig steht sep=None für Leerraumgruppen und maxsplit=−1 für unbegrenzt viele Trennungen.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.rstrip

Entfernt rechts Leerraum oder Zeichen aus der optionalen Menge chars.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.split

Zerlegt Text in eine Feldliste.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.splitlines

Zerlegt Text in Zeilen. CRLF ist eine Grenze, daher entsteht zwischen one und two keine Leerzeile.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.startswith

Prüft den exakten Anfang des Texts oder eines Bereichs zwischen optionalem start und ausgeschlossenem end.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested
Python

str.strip

Entfernt an beiden Enden Leerraum oder einzelne Zeichen aus dem optionalen chars.

Mittlere Stufe · Python 3.14; repository image, production runtime not attested