<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>philojuan</author_name>
  <author_url>https://blog.hatena.ne.jp/philojuan/</author_url>
  <blog_title>恥は/dev/nullへ by 初心者</blog_title>
  <blog_url>https://uhoho.hatenablog.jp/</blog_url>
  <categories>
    <anon>Python学習</anon>
  </categories>
  <description>文字列の左または右にある空白文字を除去（rstripとlstrip） 文字列の左または右にある空白文字（空白、タブ、改行など）を取り除く場合、rstripやlstripを使います。 rstrip → 文字列の右側にある空白文字を除去する。 lstrip → 文字列の左側にある空白文字を除去する。 コード print(&quot;[変更前]&quot;) name = '\tAlbert Einstein' print(name) print(&quot;うほうほ&quot;) print(&quot;&quot;) print(&quot;[変更後] lstrip()を使用&quot;) print(name.lstrip()) print(&quot;うほうほ&quot;) print(&quot;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fuhoho.hatenablog.jp%2Fentry%2F2021%2F07%2F25%2F040615&quot; title=&quot;［Python］空白文字を除去する（rstrip, lstrip, strip） - 恥は/dev/nullへ by 初心者&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>2021-07-25 04:06:15</published>
  <title>［Python］空白文字を除去する（rstrip, lstrip, strip）</title>
  <type>rich</type>
  <url>https://uhoho.hatenablog.jp/entry/2021/07/25/040615</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
