<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tomcha0079</author_name>
  <author_url>https://blog.hatena.ne.jp/tomcha0079/</author_url>
  <blog_title>Perlがくしゅう帳(Rubyも)</blog_title>
  <blog_url>https://tomcha.hatenablog.jp/</blog_url>
  <categories>
    <anon>ruby</anon>
  </categories>
  <description>サクサク行きます！お題にクイズ形式で答えてコードを書いていくのは楽しいですね。今日のお題はこちら。Digit Numberファイルの読み込みと、読んだデータの処理が味噌な問題。1つずつ、覚えていきます。読み込んだ文字の操作を調べつつコードを書いてみた。 file = open(&quot;number.txt&quot;)while text = file.gets array = text.split(/\s/) print(((array[0].to_i + array[1].to_i).to_s).length,&quot;\n&quot;)endfile.close number.txtにデータを書きこんで、1行読んで、空白…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftomcha.hatenablog.jp%2Fentry%2F4502191&quot; title=&quot;Rubyでコードを書いてみた〜序の3〜 - Perlがくしゅう帳(Rubyも)&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2012-03-12 23:16:03</published>
  <title>Rubyでコードを書いてみた〜序の3〜</title>
  <type>rich</type>
  <url>https://tomcha.hatenablog.jp/entry/4502191</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
