Erlang shell中,用句号加空格、tab或回车来结束表达式,%表示注释的起点,;隔离子句。模块是.erl 文件,库的头文件.hrl, shell中的编译时c(),外编译命令时erlc, 退出shell用q(),或erlang:halt().
变量以大写字母开头,且不能重新绑定变量,只能一次性赋值,具有不可变状态.........
分类:
其他好文 时间:
2015-03-05 14:50:14
阅读次数:
126
ThefollowingcodeinthedefaultdocumentwillhidetheURLtowheretherequestisbeingredirected:html
titleWelcometoawonderfulsite/title
framesetcols="100%,*"border=0frameborder=0
border=0framespacing=0scrolling="no"
framesrc="http://source.domain.com"
name="AddressHi..
分类:
Web程序 时间:
2015-02-05 11:40:50
阅读次数:
138
ThefollowingcodeinthedefaultdocumentwillhidetheURLtowheretherequestisbeingredirected:html
titleWelcometoawonderfulsite/title
framesetcols="100%,*"border=0frameborder=0
border=0framespacing=0scrolling="no"
framesrc="http://source.domain.com"
name="AddressHi..
分类:
Web程序 时间:
2015-02-05 11:38:01
阅读次数:
110
%% @author Rolong
-module(process2).
-compile(export_all).
-include("common.hrl").
%% Usage:
%% 启动服务:process2:start().
%% 查看时间:myserver ! now.
%% 结束服务:myserver ! stop.
start()->
Pid = spawn(?MO...
分类:
系统相关 时间:
2015-01-11 11:02:05
阅读次数:
210
目的:需要把数据框的行列进行转置
方法:
# 原始数据框
> hrl_jd_mon
年份 一月 二月 三月 四月 五月 六月 七月 八月 九月 十月 十一月 十二月
1 2010年 51.2 45.8 55.8 62.9 63.8 59.5 80.5 78.0 66.0 92.3 50.80 55.6
2 2011年 54.8 54.4 64.1 78.5 64.5 63...
分类:
编程语言 时间:
2014-11-19 18:37:12
阅读次数:
342