Erlang:如何避免将列表转换为ASCII字符串? [英] Erlang: How does one avoid Lists being translated to ASCII Strings?
本文介绍了Erlang:如何避免将列表转换为ASCII字符串?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
所以..怎么会回来[97,98 ,99]没有Erlang将其转换为ASCII?
解决方案
您可以尝试 io:format w〜n,[ListHere])
,这应该只是避免解释数据。
[97, 98, 99]. yields "abc", in the Erlang shell. I realize this is because the ASCII values of a, b and c are 97, 98 and 99 respectively.
So.. how would one go about returning [97,98,99] without Erlang translating it to ASCII?
解决方案
You can try io:format("~w~n", [ListHere])
, which should simply avoid interpreting the data.
这篇关于Erlang:如何避免将列表转换为ASCII字符串?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文