Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@yaoTrubine
会员
第 29997 位会员 / 2016-12-30

[email protected]
上海
0 篇帖子 / 2 条回帖
0 关注者
1 正在关注
27 收藏
GitHub Public Repos
  • wxshop 1

    微信小程序商城

  • fileupload-wxapp 1

    微信小程序文件上传

  • See_you_in_BUPT 0

    北京邮电大学计算机考研信息汇总

  • aimto408 0

    这个repo是为了那些准备死磕计算机考研408的考研党准备的,当然你如果4门课中的部分也可以看看,欢迎star

  • RubyUsersGuide-zh 0

    这是Ruby User’s Guide的简体中文版:Ruby用户指南。

  • 24guai-fullstack 0

  • first-full-stack-with-... 0

  • modal-in-react 0

    Open a modal dialog in React

  • credit-search 0

  • Insurance-form 0

    full of checkbox and radio

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 分享下一点创业小心得以及创业项目运营情况 at 2017年10月12日

    不接广告么

  • Ruby 操作修改文件内容 at 2017年01月26日

    写两个方法辣

    #第一个 
    def output(filename)
        str = ""
        File.open(filename,"r+"){|f|
              f.each_line{|line|
                   str += line.gsub(/,/,"\n")
              }
        }
       str
    end
    result = output("example.txt")
    
    #第二个
    def input(filename,str)
        File.open(filename,"w"){|f|
            f.write str
    }
    end
    input("example.txt",result)
    
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English