Ruby语言入门教程

时间:2015-08-24 07:44:33
【文件属性】:

文件名称:Ruby语言入门教程

文件大小:738KB

文件格式:PDF

更新时间:2015-08-24 07:44:33

ruby 入门

目录 自序.....................................................................................................................................................3 第一章概述.....................................................................................................................................4 1.1 编程语言的发展简史........................................................................................................4 1.2 编程其实很容易................................................................................................................5 1.3 Ruby 的由来......................................................................................................................6 1.4 Ruby 的特性......................................................................................................................7 第二章.................................................................................................................................................8 2.1 下载Ruby 1.8.5.................................................................................................................8 2.2 安装Ruby 1.8.5 for Windows...........................................................................................8 2.3 开始第一个小程序..........................................................................................................10 2.4 ruby 语言的集成开发环境.............................................................................................12 第三章语法快览...........................................................................................................................14 3.1 注释与分行......................................................................................................................14 3.2 分隔符..............................................................................................................................15 3.3 关键字..............................................................................................................................16 3.4 运算符..............................................................................................................................17 3.5 标识名和变量的作用域..................................................................................................19 3.6 类库..................................................................................................................................19 3.7 数据类型..........................................................................................................................20 3.8 赋值和条件运算符..........................................................................................................21 3.9 条件判断语句..................................................................................................................22 3.10 循环语句........................................................................................................................24 3.11 常与线程........................................................................................................................29 3.12 一个综合小练习............................................................................................................30 第四章一切都是对象...................................................................................................................31 4.1 两种思维方式..................................................................................................................31 4.2 对象..................................................................................................................................32 4.3 封装..................................................................................................................................33 4.4 继承..................................................................................................................................34 4.5 多态36


网友评论

  • 挺好的,比较基础,适合零基础的人看一下