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