-module(helloworld).
-import(string,[left/2]).
-export([start/0]).
start() ->
Str1 = "hello World",
Str2 = left(Str1,2),
io:fwrite("~p~n",[Str2]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266283.html
-module(helloworld).
-import(string,[left/2]).
-export([start/0]).
start() ->
Str1 = "hello World",
Str2 = left(Str1,2),
io:fwrite("~p~n",[Str2]).
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/266283.html