Created
February 5, 2021 22:34
-
-
Save PJZ9n/90b11c2c29bc61aa2d81bb7fe68d3ec1 to your computer and use it in GitHub Desktop.
CSVから禁止ワードのリストを生成する http://monoroch.net/kinshi/kinshi.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "csv" | |
words = [] | |
CSV.foreach("test.csv") do |row| | |
words << row[0] unless row[0].nil? | |
words << row[1] unless row[1].nil? | |
words << row[2] unless row[2].nil? | |
end | |
puts words |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment