2019-01-23 22:57:32 Ruby

Ruby

Copy Copied! Full
#英和 require "open-uri" unless ARGV[0]==nil open("https://ejje.weblio.jp/content/#{ARGV[0]}"){|mean| data=mean.read.scan(/content=\"(.*)\"?>/).flatten puts data[-1].gsub('"',"")} else puts "駄目." end
RECOMMEND