<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>potisan</author_name>
  <author_url>https://blog.hatena.ne.jp/potisan/</author_url>
  <blog_title>potisanのプログラミングメモ</blog_title>
  <blog_url>https://potisan-programming-memo.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python</anon>
  </categories>
  <description>文字列の一部を取り出す スライスを使います。 s = &quot;abcde&quot; #先頭の文字 s[1] s[1:] #末尾の文字 s[-1] s[-1:] #先頭からn文字目 s[n] s[n:] #末尾からn文字目 s[-n] s[-n:] #先頭n番目からm文字 #末尾n番目からm文字 文字列配列から末尾が特定文字の要素を抜き出す 内包記法を使います。 ss = ['A;','B','C','D;','EF','G;'] [s for s in ss if s[-1]==';'] [s[:-1] for s in ss if s[-1]==';'] 閉じる前提でファイルを開く with構文構文を使い…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpotisan-programming-memo.hatenablog.jp%2Fentry%2F2019%2F01%2F25%2F183531&quot; title=&quot;Python 3基礎事項の覚え書き - potisanのプログラミングメモ&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>2019-01-25 18:35:31</published>
  <title>Python 3基礎事項の覚え書き</title>
  <type>rich</type>
  <url>https://potisan-programming-memo.hatenablog.jp/entry/2019/01/25/183531</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
