`
hq2999
  • 浏览: 3497 次
  • 性别: Icon_minigender_1
  • 来自: 宁波
文章分类
社区版块
存档分类
最新评论
文章列表
#get方式访问,并返回Response内容 require 'httpclient'client = HTTPClient.new  client.get_content('http://www.baidu.com') do |chunk|   puts chunk end
File.open("d:/aaa.txt","r") do |lines|  uffer = lines.read  puts ufferend
require "rubygems"require "mysql"   begin     dbh = Mysql.real_connect("localhost", "root", "", "test")     res = dbh.query("SELECT * FROM card")#     while row = res.fetch_array do#     printf "%s, %s\n", row["card_ ...
Global site tag (gtag.js) - Google Analytics