Ruby入门笔记
摘要:Ruby入门笔记 一切皆为对象 “Hello”.length 方法 定义:def开头 end结尾 命名一般采用下划线分隔单词 字符串中可以嵌入表达式 返回值:a)return+返回值 b) 函数最后一行代码的值为返回值(太神奇了) 类 定义:class 开头 end结尾 Initialize是构造方
阅读全文
posted @ 2015-05-06 12:25
posted @ 2015-05-06 12:25
posted @ 2014-12-30 11:18
posted @ 2014-11-13 10:53
posted @ 2014-09-11 13:22
posted @ 2012-07-13 13:18
posted @ 2012-07-03 16:38