<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ShineSpark</author_name>
  <author_url>https://blog.hatena.ne.jp/ShineSpark/</author_url>
  <blog_title>人生シーケンスブレイク</blog_title>
  <blog_url>https://shinespark.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>Pythonでは複数の変数に纏めて代入可能。 &gt;&gt;&gt; x, y = 1, 2 &gt;&gt;&gt; x, y (1, 2) 右辺はリストやタプルであれば良く、Pythonでタプルは , で表現されるので括弧はあってもなくても良い。 利用例1: リスト要素を纏めて受け取り &gt;&gt;&gt; li = [3, 5] &gt;&gt;&gt; a, b = li &gt;&gt;&gt; a, b (3, 5) 関数のreturnのリストを受け取ることも可。 利用例2: リスト内包表記と組み合わせ &gt;&gt;&gt; input = '3 5' &gt;&gt;&gt; x, y = [int(x) for x in input.split()] &gt;&gt;&gt; x, y (3, 5) スクレイ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinespark.hatenablog.com%2Fentry%2F2015%2F09%2F26%2F005251&quot; title=&quot;Pythonのアンパック代入が便利 - 人生シーケンスブレイク&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>2015-09-26 00:52:51</published>
  <title>Pythonのアンパック代入が便利</title>
  <type>rich</type>
  <url>https://shinespark.hatenablog.com/entry/2015/09/26/005251</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
