目录

pid_to_list

它将进程ID转换为列表。

语法 (Syntax)

Pid_to_list(processid)

参数 (Parameters)

  • processid - 这是需要转换为列表的进程ID。

返回值 (Return Value)

从进程ID返回列表。

例如 (For example)

-module(helloworld). 
-export([start/0, call/2]). 
call(Arg1, Arg2) ->
   io:format("~p ~p~n", [Arg1, Arg2]). 
start() ->
   Pid = spawn(?MODULE, call, ["hello", "process"]), 
   io:fwrite("~p~n",[pid_to_list(Pid)]).

输出 (Output)

当我们运行上述程序时,我们将得到以下结果。

"<0.55.0>"
"hello" "process"
↑回到顶部↑
WIKI教程 @2018