在Erlang的标准输出中写入输出行

Luc*_*rin 3 erlang stdout

我想知道Erlang中是否有任何函数用于编写

io:format("An output line~n").
Run Code Online (Sandbox Code Playgroud)

在标准输出中,无需~n每次都写,即相当于Java的

System.out.println("An output line");
Run Code Online (Sandbox Code Playgroud)

我的意思是已经存在的Erlang函数.我知道如果它不存在我应该做的是创建我自己的功能:

write_output(Text) ->
    io:format("~p~n", [Text]).
Run Code Online (Sandbox Code Playgroud)

I G*_*ERS 5

不,没有,但自己写一个很简单:

myf(FS, Opts) ->
    io:format(FS, Opts),
    io:nl().
Run Code Online (Sandbox Code Playgroud)