`
文章列表
網址是:http://zh.wikibooks.org/w/index.php?title=Programming:Ruby&variant=zh現在是我跟石頭閒語的Rock一起翻譯撰寫,如果有人有興趣的話歡迎加入翻譯的工作請將原文的文章引用後張貼,然後修改翻譯即可感謝您的付出!謝謝!
在Ruby中,File可以用readlines跟跑while迴圈來讀在這個例子中,程式p1用的是while迴圈,p2用的是readlines執行後,秒數分別是P1:121.468秒P2:122.172秒範例文字檔大小是:4.07 MB (4,272,336 位元組)範例程式碼是:puts "P1 start"p1_start = Time.nowopen("C:/words.txt"){ |f|while a = f.gets print aend}p1_end = Time.nowputs "P1 end"puts "P2 ...
在Ruby中,File可以用readlines跟跑while迴圈來讀在這個例子中,程式p1用的是while迴圈,p2用的是readlines執行後,秒數分別是P1:121.468秒P2:122.172秒範例文字檔大小是:4.07 MB (4,272,336 位元組)範例程式碼是:puts "P1 start"p1_start = Time.nowopen("C:/words.txt"){ |f|while a = f.gets print aend}p1_end = Time.nowputs "P1 end"puts "P2 ...
有看到右邊多了什麼嗎?沒錯!就是部落格寵物!還蠻可愛的說A_A
有看到右邊多了什麼嗎?沒錯!就是部落格寵物!還蠻可愛的說A_A
此版本尚未支援 影片代碼 功能原始碼如下:require 'rubygems'require 'mechanize'class HEMiDEMidef initialize(username="", password="") agent = WWW::Mechanize.new{} f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[username]"], f["member[password]&qu ...
此版本尚未支援 影片代碼 功能原始碼如下:require 'rubygems'require 'mechanize'class HEMiDEMidef initialize(username="", password="") agent = WWW::Mechanize.new{} f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[usernam ...
原始碼在這邊:require 'rubygems'require 'mechanize'class HEMiDEMi def initialize(username="", password="") agent = WWW::Mechanize.new f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[username]"], f["member[password]"] ...
原始碼在這邊:require 'rubygems'require 'mechanize'class HEMiDEMi def initialize(username="", password="") agent = WWW::Mechanize.new f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[username]"], f["member[password]"] ...
原始碼在這邊:require 'rubygems'require 'mechanize'class HEMiDEMi def initialize(username="", password="") agent = WWW::Mechanize.new f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[username]"], f["member[password]"] ...
原始碼在這邊:require 'rubygems'require 'mechanize'class HEMiDEMi def initialize(username="", password="") agent = WWW::Mechanize.new f = agent.get("http://www.hemidemi.com/member/signin_form").forms[1] f["member[username]"], f["member[password]"] ...
錄影放在Google Video議題分別是:How to Design A Domain Specific Language -- David PollakCode Generation With Ruby -- Jack HerringtonRuby and Google Maps -- Andre Lewis正在看Ruby and Google Maps:P
錄影放在Google Video議題分別是:How to Design A Domain Specific Language -- David PollakCode Generation With Ruby -- Jack HerringtonRuby and Google Maps -- Andre Lewis正在看Ruby and Google Maps:P
網址是:http://www.bestechvideos.com/category/development/ruby/這邊有51個不同的展示影片,也有介紹影片,非常值得去看看
網址是:http://www.bestechvideos.com/category/development/ruby/這邊有51個不同的展示影片,也有介紹影片,非常值得去看看
Global site tag (gtag.js) - Google Analytics