<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kazutaka83</author_name>
  <author_url>https://blog.hatena.ne.jp/kazutaka83/</author_url>
  <blog_title>QuzeeBlog@Hatena</blog_title>
  <blog_url>https://quzee.hatenablog.com/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>取り扱う対象は１次元のリスト。リストは昇順・降順に並び替えたり、長さ順に並び替えたりすることが多い。以下のようなリストに変更を加えていく。個人名は適当に生成してます。 Ipython使ってるので入出力の接頭文字が付いてます。 NameList = ['佐藤一','小林武彦','渡辺浩二','麻生信雄','西川ともこ','池田宏','国貞真一郎','佐藤ひとみ'] 昇順・降順の並び替え これを昇順に並び替えるにはsortメソッドを使う。 NameList.sort() In [16]: NameList Out[16]: ['佐藤ひとみ', '佐藤一', '国貞真一郎', '小林武彦', '池田…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fquzee.hatenablog.com%2Fentry%2F2015%2F02%2F23%2F173254&quot; title=&quot;Pythonで生成したリストの並び替え - QuzeeBlog@Hatena&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-02-23 17:32:54</published>
  <title>Pythonで生成したリストの並び替え</title>
  <type>rich</type>
  <url>https://quzee.hatenablog.com/entry/2015/02/23/173254</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
