<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>With on プログラミング演習B</title>
    <link>https://ksupbpb.github.io/2025/tags/with/</link>
    <description>Recent content in With on プログラミング演習B</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    <copyright>© 2026 </copyright>
    <atom:link href="https://ksupbpb.github.io/2025/tags/with/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>ファイルの読み書き</title>
      <link>https://ksupbpb.github.io/2025/lesson01/file/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/file/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;ファイルを開く 
    &lt;div id=&#34;ファイルを開く&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;
    
    &lt;span
        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;
        &lt;a class=&#34;group-hover:text-primary-300 dark:group-hover:text-neutral-700 !no-underline&#34; href=&#34;#%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%82%92%e9%96%8b%e3%81%8f&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;span class=&#34;flex&#34; style=&#34;cursor: pointer;&#34;&gt;
  &lt;span class=&#34;rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400&#34;&gt;
    教科書 p.286（Lesson 10）
  &lt;/span&gt;
&lt;/span&gt;

&lt;p&gt;Python でファイルを読み書きするには，&lt;code&gt;open&lt;/code&gt; 関数を使います．
&lt;code&gt;open&lt;/code&gt;関数の第1引数が対象のファイル名，第２引数がオープンモードです．
オープンモードは教科書 p.288 表10-1 に記載されていますが，以下の3種類を区別できれば良いでしょう．&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
