Qurak

Visualize the character codes in a string

Esempio 3 passi, eseguiti in ordine in una sola sessione. Ogni passo è stato eseguito sul motore e l'output qui sotto è ciò che ha prodotto.

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

Funzioni usate

Ricette correlate

Tutte le ricette · Guida delle funzioni · Usa questo da un client MCP