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