歌手:Scorpions
专辑:Comeblack
Rolling Stones - Ruby Tuesday
(Jagger/Richards)
She would never say where she came from
Yesterady don't matter if it's gone
While the sun is bright
Or in the darkest night
No one knows
She comes and go
Goodbye Ruby Tuesday
Who could hang a name on you?
When you change with ev'ry new day
Still I'm gonna miss you
Don't question why she needs to be so free
She'll tell you it's the only way to be
She just can't be chained
To a life where nothing's gained
And nothing's lost at such a cost
"There's no time to lose"
I heard her say
Catch your dreams before they slip away
Dying all the time
Lose your dreams and you will lose your mind
Ain't life unkind?
http://music.baidu.com/song/12338240
查询核心模块Kernel API可知:如果是Float类型则通过Kernel.Float(字符串)判断,这里不能转为浮点数则会抛出异常。你只需再捕获一下输出自己的信息就行。
str = "Ruby"str.split(//).each {|e|print (e.unpack('H*').to_s + "\n")}
#irb
# 52
# 75
# 62
# 79
# =>["R", "u", "b", "y"]