<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>pythonco</author_name>
  <author_url>https://blog.hatena.ne.jp/pythonco/</author_url>
  <blog_title>pythonco(ぱいそんこ)の日記</blog_title>
  <blog_url>https://pythonco.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>組み込み関数ordを使うと文字コードを得ることができます。 print 'a =&gt;', ord('a') # =&gt; a =&gt; 97 for i in 'apple': print i, '=&gt;', ord(i) # =&gt; a =&gt; 97 # p =&gt; 112 # p =&gt; 112 # l =&gt; 108 # e =&gt; 101組み込み関数chrを使うと文字コードから文字列に変換することができます。 print chr(97) + chr(112) + chr(112) + chr(108) + chr(101) # =&gt; apple for i in [ord(i) for i in 'apple…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpythonco.hatenadiary.org%2Fentry%2F20060922%2Fp3&quot; title=&quot;文字列と文字コード - pythonco(ぱいそんこ)の日記&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>2006-09-22 00:00:02</published>
  <title>文字列と文字コード</title>
  <type>rich</type>
  <url>https://pythonco.hatenadiary.org/entry/20060922/p3</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
