-module(helloworld).
-import(string,[len/1]).
-export([start/0]).
start() ->
Str1 = "This is a string1",
Len1 = len(Str1),
io:fwrite("~p~n",[Len1]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266277.html
-module(helloworld).
-import(string,[len/1]).
-export([start/0]).
start() ->
Str1 = "This is a string1",
Len1 = len(Str1),
io:fwrite("~p~n",[Len1]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266277.html