<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>t2y-1979</author_name>
  <author_url>https://blog.hatena.ne.jp/t2y-1979/</author_url>
  <blog_title>forest book</blog_title>
  <blog_url>https://t2y.hatenablog.jp/</blog_url>
  <categories>
    <anon>python</anon>
  </categories>
  <description>呼称: 標準入力の取得 目的: 行単位で標準入力を読み込んでリストへ追加する 特徴: 改行コードの取扱いがポイント 用例: 何かとよく使うでしょ 備考: sys.stdin.readline()[:-1] とスライシングを使うのも有効 #!/bin/env python import sys lines = [] # use for loop for l in iter(sys.stdin.readline, '\n'): lines.append(l) print lines # use while loop while 1: l = sys.stdin.readline() if not …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ft2y.hatenablog.jp%2Fentry%2F20080709%2F1215533220&quot; title=&quot;標準入力の基本 : 1 - forest book&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>2008-07-09 01:07:00</published>
  <title>標準入力の基本 : 1</title>
  <type>rich</type>
  <url>https://t2y.hatenablog.jp/entry/20080709/1215533220</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
