开发工具:
文件大小: 1mb
下载次数: 0
上传时间: 2013-04-22
详细说明: 自序..................................................................................................................................................3 第一章 概述...................................................................................................................................4 1.1 编程语言的发展简史......................................................................................................4 1.2 编程其实很容易..............................................................................................................7 1.3 R uby的由来.....................................................................................................................8 1.4 Ruby的特性.....................................................................................................................9 第二章............................................................................................................................................11 2.1 下载Ruby 1.8.5..............................................................................................................11 2.2 安装Ruby 1.8.5 for Windows........................................................................................12 2.3 开始第一个小程序........................................................................................................14 2.4 Ruby语言的集成开发环境...........................................................................................17 第三章 语法快览.........................................................................................................................18 3.1 注释与分行....................................................................................................................18 3.2 分隔符............................................................................................................................20 3.3 关键字............................................................................................................................21 3.4 运算符............................................................................................................................23 3.5 标识名和变量的作用域................................................................................................25 3.6 类库................................................................................................................................26 3.7 数据类型........................................................................................................................27 3.8 赋值和条件运算符........................................................................................................28 3.9 条件判断语句................................................................................................................30 一. 单行 if(如果) 语句...........................................................................................30 二. 多行 if 语句...........................................................................................................30 三. unless(除非) 条件语句:........................................................................................30 四. case分支条件语句....................................................................................................31 3.10 循环语句......................................................................................................................32 一. while(当…) 循环................................................................................................32 二. 单行 while 循环.....................................................................................................32 三. until(直到…) 循环...........................................................................................32 四. for…in 循环.............................................................................................................33 五.break , next & redo & retry....................................................................33 六. 求50以内的素数。................................................................................................36 七. times , upto , downto , each ,step..............................................................................37 3.11 异常与线程..................................................................................................................38 3.12 一个综合小练习..........................................................................................................39 第四章 一切都是对象.................................................................................................................40 4.1 两种思维方式................................................................................................................40 4.2 对象................................................................................................................................41 4.3 封装................................................................................................................................43 ...展开收缩
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.