EUNO.NEWS EUNO.NEWS
  • All (13435) +334
  • AI (2139) +26
  • DevOps (628) +7
  • Software (6970) +202
  • IT (3665) +99
  • Education (33)
  • Notice
  • All (13435) +334
    • AI (2139) +26
    • DevOps (628) +7
    • Software (6970) +202
    • IT (3665) +99
    • Education (33)
  • Notice
  • All (13435) +334
  • AI (2139) +26
  • DevOps (628) +7
  • Software (6970) +202
  • IT (3665) +99
  • Education (33)
  • Notice
Sources Tags Search
한국어 English 中文
  • 2天前 · software

    Ruby 文件处理和系统命令

    打开并读取文件 ```ruby File.open 'p014constructs.rb', 'r' do |f1| while line = f1.gets puts line end end ``` 写入文件 ```ruby File.open 'test.rb', 'w' do |f2| f2.puts 'Created by...' end ```

    #ruby #file-io #system-commands #load-require #find-module #environment-variables #scripting
EUNO.NEWS
RSS GitHub © 2026