自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

转载 Ruby 语法

让我们编写一个简单的 Ruby 程序。所有的 Ruby 文件扩展名都是 .rb。所以,把下面的源代码放在 test.rb 文件中。实例#!/usr/bin/ruby -wputs "Hello, Ruby!";$ ruby test.rb这将会产生下面的结果:Hello, Ruby!Ruby 程序中的空白在 Ruby 代码中的空白字符,如空格和制表符一般会被忽略,除非当它们出现在字符串中时才不会被忽

2016-02-20 17:14:27 315

转载 Ruby 简介

Ruby是一种纯粹的面向对象编程语言。它由日本的松本行弘创建于1993年。 您可以在 www.ruby-lang.org 的 Ruby 邮件列表上找到松本行弘(まつもとゆきひろ/Yukihiro Matsumoto)的名字。在 Ruby 社区,松本也被称为马茨(Matz)。Ruby 是”程序员的最佳朋友”。Ruby 的特性与 Smalltalk、Perl 和 Python 类似。Perl、Pyth

2016-02-20 17:10:32 400

转载 Groovy spread-dot operator

I’m unsure about when exactly I need to use the spread-dot operator. If I have a list such as:def animals = ['ant', 'buffalo', 'canary', 'dog']Because both animals and the members of the list have a si

2016-02-20 16:13:43 513

转载 Groovy的展开操作符(Spread Operator)*.和*

“*.“操作符称之为:spread-dot操作,即“展开(点)”操作。比如list*.member跟list.collect{ item -> item?.member } 是等效的。此处member可以是属性,也可以是get/set方法,甚至是一般的方法。如下例class SpreadDotDemo { def count } def list = [new SpreadDotDemo(

2016-02-20 16:09:39 952

转载 groovy快速入门

一、 groovy简介和 环境搭建本机环境 : ubuntu 14.04 64bit JDK 1.7.67 IDE : intellij idea 13.11、groovy简介其官方介绍为, Groovy… is an agile and dynamic language for the Java Virtual Machine builds upon the strengths of

2016-02-20 15:49:46 575

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除