📜  在 ruby 中读取 xls 文件 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:20.629000             🧑  作者: Mango

代码示例1
require 'creek'

workbook = Creek::Book.new 'path/to/file.xlsx'
worksheets = workbook.sheets

worksheets.each do |worksheet|
  worksheet.rows.each do |row|
    row_cells = row.values
    # do something with row_cells
  end
end