English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
该方法返回特定字符串的长度
len(str)
str −这是需要确定字符数的字符串。
返回值是字符串中的字符数。
-module(helloworld). -import(string,[len/1 -export([start/0]). start() -> Str1 = "This is a string1", Len1 = len(Str1), io:fwrite("~p~n",[Len1
Cuando ejecutamos el programa superior, obtendremos los siguientes resultados.
17