KennisbankExamencentrum
NL · NLNederlands (Nederland)
Taal kiezen13

CKTIS / Python

Kennisbank — Python

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

Artikelen: 583

Python

str.count

Telt niet-overlappende voorkomens van een deelreeks binnen het gekozen bereik.

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

str.encode

Codeert de tekst volgens de gekozen codering en geeft bytes terug.

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

str.endswith

Test op een exact achtervoegsel; een tuple biedt meerdere alternatieven.

Gemiddeld · Python 3.14; repository image, production runtime not attested
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