Erlang:如何将 Atom 转换为 String?

Md.*_*mud 0 string erlang immutability

我想从原子转换为字符串。

Input  =  'hello world'.
Output =  "hello world".
Run Code Online (Sandbox Code Playgroud)

我如何实现这一目标?

leg*_*cia 5

使用atom_to_list

> atom_to_list('hello world').
"hello world"
Run Code Online (Sandbox Code Playgroud)