KennisbankExamencentrum
NL · NLNederlands (Nederland)
Taal kiezen13

CKTIS / Kennisbank

Kennisbank

Syntax, operatoren en programmeerconcepten. Zoek een uitleg, bekijk een voorbeeld en leer verder.

Artikelen: 5788

Python

str.find

Geeft de laagste index van de deelreeks binnen de zoekgrenzen.

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

str.format

Vult sjabloonvelden met positie- of sleutelwoordargumenten en past de formaatspecificaties toe.

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

str.format_map

Leest benoemde velden rechtstreeks uit de opgegeven mapping.

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

str.index

Geeft de eerste deelreeksindex binnen de grenzen, geteld vanaf het begin van de oorspronkelijke tekst.

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

str.isalnum

Geeft een bool voor niet-lege tekst met uitsluitend Unicode-letters of numerieke tekens.

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

str.isalpha

Vereist niet-lege tekst met uitsluitend Unicode-letters.

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

str.isdigit

Test of niet-lege tekst uitsluitend Unicode-cijfers bevat. ² is een cijfer maar geen decimaal cijfer: isdigit geeft True en isdecimal False.

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

str.isspace

Geeft alleen True voor niet-lege tekst met uitsluitend witruimte.

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

str.join

Voegt de tekenreeksen van een iterabel object samen met de aanroepende scheidingstekst tussen posities.

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

str.lower

Geeft de tekst in kleine Unicode-letters.

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

str.lstrip

Verwijdert links witruimte of, met chars, elk teken uit die verzameling.

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

str.removeprefix

Verwijdert één exact voorvoegsel aan het begin.

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

str.removesuffix

Verwijdert eenmaal een exact achtervoegsel.

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

str.replace

Vervangt niet-overlappende letterlijke treffers van old door new.

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

str.rfind

Geeft de hoogste beginindex van een deeltekenreeks tussen start en end.

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

str.rsplit

Splitst vanaf rechts. Standaard kiest sep=None groepen witruimte en maxsplit=−1 onbeperkt splitsen.

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

str.rstrip

Verwijdert rechts witruimte of tekens uit de optionele verzameling chars.

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

str.split

Splitst tekst in een lijst velden.

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

str.splitlines

Splitst tekst in regels. CRLF is één grens en geeft geen lege regel tussen one en two.

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

str.startswith

Test het exacte begin van de tekst of het gedeelte met optionele start en end, exclusief end.

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

str.strip

Verwijdert aan beide uiteinden witruimte of losse tekens uit de optionele chars.

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

str.title

Begint een reeks letters in titelvorm en maakt de volgende letters klein.

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

str.upper

Geeft de tekst in Unicode-hoofdletters.

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

str.zfill

Vult met ASCII-nullen aan tot de minimale breedte width.

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