blog.programfan.info
新网站即将启用
修改edoc项目下面的edoc_lib模块, 把其中的函数write_file/4中的case file:open(File, [write]) of修改为case file:open(File, [write,{encoding, utf8}]) of,编译后把生成的beam文件放到对应目录就ok... Read More
posted @ 2011-01-11 17:13 Gordon Chao Views(332) Comments(0) Diggs(0) Edit
1、消重算法: 1> List = [1,2,3,1,2,4].[1,2,3,1,2,4]2> sets:to_list(sets:from_list(List)).[3,2,1,4] 2、排序算法: 3>lists:sort(List).[1,1,2,2,3,4] 根据某一元素排序... Read More
posted @ 2011-01-11 16:59 Gordon Chao Views(738) Comments(0) Diggs(0) Edit
www.programfan.info
新网站即将启用