<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inarizuuuushi</author_name>
  <author_url>https://blog.hatena.ne.jp/inarizuuuushi/</author_url>
  <blog_title>Sabrou-mal サブロウ丸</blog_title>
  <blog_url>https://inarizuuuushi.hatenablog.com/</blog_url>
  <categories>
    <anon> python </anon>
  </categories>
  <description>list操作(基)sortの話です. sort sortとsortedの2種類. 使い方その他は下記. a = [2, 3, 4, 1] sorted(a) &gt; [1, 2, 3, 4] #aのsort後のlistが出力される a &gt; [2, 3, 4, 1] #aに変化はなし a.sort() a &gt; [1, 2, 3, 4] #a自体がsortされている. sorted(a, reverse=True) &gt; [4, 3, 2, 1] #降順にsort def func(x): return x%4 sorted(a, key=func) &gt; [4, 1, 2, 3] #keyに関数を指定で…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finarizuuuushi.hatenablog.com%2Fentry%2F2016%2F12%2F02%2F085414&quot; title=&quot; Python コーディング(基) list編 - Sabrou-mal サブロウ丸&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>2016-12-02 08:54:14</published>
  <title> Python コーディング(基) list編</title>
  <type>rich</type>
  <url>https://inarizuuuushi.hatenablog.com/entry/2016/12/02/085414</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
