Erlang:如何将 Atom 转换为字符串?
Erlang: How to convert Atom to String?
我想从原子转换为字符串。
Input = 'hello world'.
Output = "hello world".
我该如何实现?
使用atom_to_list
:
> atom_to_list('hello world').
"hello world"
我想从原子转换为字符串。
Input = 'hello world'.
Output = "hello world".
我该如何实现?
使用atom_to_list
:
> atom_to_list('hello world').
"hello world"