列表中的Erlang字符串 [英] Erlang string from list

查看:96
本文介绍了列表中的Erlang字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有erlang列表符号: [104,105,106,107 ...] 我如何从此列表中获取字符串:

I have erlang list symbols: [104, 105, 106, 107 ...] How can i got string from this list:

hijk ...

谢谢。

推荐答案

Erlang中不存在作为数据类型的字符串。蜇是简单的字符列表。

Strings as a datatype do not exist in Erlang. Stings are simply lists of characters.

[104,105,106,107] hijk是完全相同的。

事实上,如果在shell中键入原始列表,可以回到string

In fact, if you type the original list in the shell you get back the "string":

1> [104, 105, 106, 107].   
"hijk"

这篇关于列表中的Erlang字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆