<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>mimimi0101</author_name>
  <author_url>https://blog.hatena.ne.jp/mimimi0101/</author_url>
  <blog_title>Hatena Notebook</blog_title>
  <blog_url>https://mamiline.hatenablog.com/</blog_url>
  <categories>
    <anon>式</anon>
    <anon>return</anon>
    <anon>関数</anon>
    <anon>JavaScript</anon>
    <anon>Python</anon>
  </categories>
  <description>JavaScript も Python もすべてオブジェクト（プリミティブも含め）とすると、関数の戻り値に特定の型を設定する縛りがないのでどんな型でも返せるが、戻り値が複数ある場合に Python は戻り値の指定方法で値の自動変換が行われる。 Python の複数の戻り値の指定 Python の場合、 戻り値をカンマ , で複数指定すると、自動的にタプル（Tuple）にパッキングされる（タプル・パッキング）。これにより、書き換え不能な型に自動的に変換して戻されるため、データの安全な受け渡し手段となっている。 複数の戻り値をカンマ ,区切りで指定する def culc_Number (a, b)…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmamiline.hatenablog.com%2Fentry%2Fpython-return&quot; title=&quot;JavaScript と Python の return で複数の戻す値がある場合の違い - Hatena Notebook&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>2026-04-15 00:00:00</published>
  <title>JavaScript と Python の return で複数の戻す値がある場合の違い</title>
  <type>rich</type>
  <url>https://mamiline.hatenablog.com/entry/python-return</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
