Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个 Erlang 符号列表:[104, 105, 106, 107 ...]. 如何从此列表中获取字符串:"hijk..."?
[104, 105, 106, 107 ...]
"hijk..."
Erlang 中不存在字符串作为数据类型。Stings 只是字符列表。
[104, 105, 106, 107]并且"hijk"完全等价。
[104, 105, 106, 107]
"hijk"
事实上,如果你在 shell 中输入原始列表,你会得到“字符串”:
1> [104, 105, 106, 107]. "hijk"