它将进程ID转换为列表。
Pid_to_list(processid)
processid - 这是需要转换为列表的进程ID。
从进程ID返回列表。
-module(helloLearnfk). -export([start/0, call/2]). call(Arg1, Arg2) -> io:format("~p ~p~n", [Arg1, Arg2]). start() -> Pid=spawn(?MODULE, call, ["hello", "learnfk.com"]), io:fwrite("~p~n",[pid_to_list(Pid)]).
当我们运行上面的程序时,我们将得到以下输出。
"<0.55.0>" "hello" "learnfk.com"
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)