Qurak

Visualize the character codes in a string

Voorbeeld 3 stappen, op volgorde uitgevoerd in één sessie. Elke stap is tegen de engine uitgevoerd en de uitvoer hieronder is wat hij opleverde.

Stap 1
charcodes = ToCharacterCode["this is a string."]
Uitvoer
{116, 104, 105, 115, 32, 105, 115, 32, 97, 32, 115, 116, 114, 105, 110, 103, 46}
Stap 2
ListPlot[charcodes, Filling -> Axis]
Uitvoer
-Graphics-
Stap 3
FromCharacterCode[charcodes]
Uitvoer
this is a string.

Gebruikte functies

Gerelateerde recepten

Alle recepten · Functiereferentie · Gebruik dit vanuit een MCP-client