![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Erlang
文章平均质量分 63
west_liu
这个作者很懒,什么都没留下…
展开
-
Erlang程序设计(第2版)源代码和课后练习答案(第五章-第八章)
github地址 ch05-记录与映射组 记录:可以给元组里的各个元素关联一个名称 映射组:哈希表 rr(read records) 映射组 K => V 更新或者新增 K := V 更新,新增会报错 练习答案 (1) 需要用到第三方库 parse_file(File) -> case file:read_file(File) of {ok, Content} -> case rfc4627:decode(Content) of原创 2021-08-20 21:25:32 · 360 阅读 · 2 评论 -
Erlang程序设计(第2版)源代码和课后练习答案(第一章-第四章)
github地址 ch02-Erlang速览 Hello Wrold $ erl Eshell V12.0.3 (abort with ^G) 1> c(hello). # 编译 {ok,hello} 2> hello:start(). Hello world ok $ erlc hello.erl $ erl -noshell -s hello start -s init stop Hello world 文件服务进程 Eshell V12.0.3 (abort with ^G) 1&原创 2021-08-15 22:39:11 · 380 阅读 · 0 评论