Qurak

StringPart

Disponible

Extracts a character by 1-based index.

StringPart["string", n]
StringPart["string", {n1, n2, …}]
StringPart["string", m ;; n ;; s]
StringPart[{s1, s2, …}, spec]
StringPart["Hello", 2] → eStringPart["abcde", 1.5] → StringPart::pkspec1: The expression 1.5 cannot be used as a part specification. StringPart[abcde, 1.5]StringPart["abcde", 10] → StringPart::partw: Part 10 of abcde does not exist. StringPart[abcde, 10]StringPart["abcde", {1, x}] → StringPart::partw: Part {1, x} of abcde does not exist. StringPart[abcde, {1, x}]

Thèmes

Connexes

Les 6300 fonctions · Utiliser ceci depuis un client MCP