diff --git a/capital.rb b/capital.rb index d804da5..f5f1ca7 100755 --- a/capital.rb +++ b/capital.rb @@ -15,4 +15,5 @@ CSV.open("capital.csv", "a") do |c| c << [country, capital] + end diff --git a/yotehyou.rb b/yotehyou.rb index df6d543..eed63aa 100755 --- a/yotehyou.rb +++ b/yotehyou.rb @@ -5,7 +5,7 @@ yoteihyou = CSV.read("yotei.csv",headers:true) yoteihyou.each do |row| - printf("%d 月の予定は %d 日 %s です。\n", row["月"], row["日"],row["予定"]) + printf("%d月の予定は%d日%sです。\n", row["月"], row["日"],row["予定"]) end print("月: ") diff --git a/yotei.csv b/yotei.csv index 296a32d..7b787cf 100644 --- a/yotei.csv +++ b/yotei.csv @@ -1,4 +1,4 @@ -月,曜日,予定 +月,日,予定 12,17,発表会 -0,0,"" +9,12,遊ぶ 0,0,""