<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>ファイル on プログラミング演習B</title>
    <link>https://ksupbpb.github.io/2025/tags/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB/</link>
    <description>Recent content in ファイル on プログラミング演習B</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>ja</language>
    <copyright>© 2026 </copyright>
    <lastBuildDate>Thu, 18 Sep 2025 00:00:00 +0000</lastBuildDate><atom:link href="https://ksupbpb.github.io/2025/tags/%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>第01講 プログラミングAの復習，基本データ型（1/2; リスト，タプル）</title>
      <link>https://ksupbpb.github.io/2025/lesson01/</link>
      <pubDate>Thu, 18 Sep 2025 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/</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;#%e6%a6%82%e8%a6%81&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;
&lt;p&gt;第01講では，では，プログラミングAで学んだ内容を復習します．
具体的には，Pythonの基本文法，ファイルの読み書き，リストとタプルについて復習します。
加えて，&lt;a
  href=&#34;grammer/#%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e5%bc%95%e6%95%b0&#34;&gt;コマンドライン引数&lt;/a&gt;についても学びます．&lt;/p&gt;</description>
      
    </item>
    
    <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>
    
    <item>
      <title>第01講 週次課題</title>
      <link>https://ksupbpb.github.io/2025/lesson01/assignments/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson01/assignments/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;課題01-1 Big&amp;amp;Small 
    &lt;div id=&#34;課題01-1-bigsmall&#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;#%e8%aa%b2%e9%a1%8c01-1-bigsmall&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;div class=&#34;flex mt-2&#34;&gt;
  &lt;span
    class=&#34;rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal&#34;&gt;
    &lt;span class=&#34;flex flex-row items-center&#34;&gt;
      
        &lt;span class=&#34;mr-1&#34;&gt;&lt;span class=&#34;relative block icon&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 384 512&#34;&gt;&lt;path fill=&#34;currentColor&#34; d=&#34;M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z&#34;/&gt;&lt;/svg&gt;
&lt;/span&gt;&lt;/span&gt;
      
      &lt;span&gt;難易度 :star:&lt;/span&gt;
    &lt;/span&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;p&gt;1以上，10以下の整数乱数を取得し，その値が5以上なら Big，5未満なら Small と出力するプログラムを作成してください．
プログラムは &lt;code&gt;big_small.py&lt;/code&gt; というファイル名で保存してください．&lt;/p&gt;</description>
      
    </item>
    
    <item>
      <title>第02講 週次課題</title>
      <link>https://ksupbpb.github.io/2025/lesson02/assignments/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://ksupbpb.github.io/2025/lesson02/assignments/</guid>
      <description>&lt;h2 class=&#34;relative group&#34;&gt;課題02-1 単語数の分布 
    &lt;div id=&#34;課題02-1-単語数の分布&#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;#%e8%aa%b2%e9%a1%8c02-1-%e5%8d%98%e8%aa%9e%e6%95%b0%e3%81%ae%e5%88%86%e5%b8%83&#34; aria-label=&#34;アンカー&#34;&gt;#&lt;/a&gt;
    &lt;/span&gt;        
    
&lt;/h2&gt;

&lt;div class=&#34;flex mt-2&#34;&gt;
  &lt;span
    class=&#34;rounded-full bg-primary-500 dark:bg-primary-400 text-neutral-50 dark:text-neutral-800 px-1.5 py-[1px] text-xs font-normal&#34;&gt;
    &lt;span class=&#34;flex flex-row items-center&#34;&gt;
      
        &lt;span class=&#34;mr-1&#34;&gt;&lt;span class=&#34;relative block icon&#34;&gt;&lt;svg xmlns=&#34;http://www.w3.org/2000/svg&#34; viewBox=&#34;0 0 384 512&#34;&gt;&lt;path fill=&#34;currentColor&#34; d=&#34;M112.1 454.3c0 6.297 1.816 12.44 5.284 17.69l17.14 25.69c5.25 7.875 17.17 14.28 26.64 14.28h61.67c9.438 0 21.36-6.401 26.61-14.28l17.08-25.68c2.938-4.438 5.348-12.37 5.348-17.7L272 415.1h-160L112.1 454.3zM191.4 .0132C89.44 .3257 16 82.97 16 175.1c0 44.38 16.44 84.84 43.56 115.8c16.53 18.84 42.34 58.23 52.22 91.45c.0313 .25 .0938 .5166 .125 .7823h160.2c.0313-.2656 .0938-.5166 .125-.7823c9.875-33.22 35.69-72.61 52.22-91.45C351.6 260.8 368 220.4 368 175.1C368 78.61 288.9-.2837 191.4 .0132zM192 96.01c-44.13 0-80 35.89-80 79.1C112 184.8 104.8 192 96 192S80 184.8 80 176c0-61.76 50.25-111.1 112-111.1c8.844 0 16 7.159 16 16S200.8 96.01 192 96.01z&#34;/&gt;&lt;/svg&gt;
&lt;/span&gt;&lt;/span&gt;
      
      &lt;span&gt;難易度 :star::star:&lt;/span&gt;
    &lt;/span&gt;
  &lt;/span&gt;
&lt;/div&gt;

&lt;p&gt;&lt;a
  href=&#34;../assets/alice_chapter01.txt&#34;&gt;&lt;code&gt;alice_chapter01.txt&lt;/code&gt;&lt;/a&gt; は，ルイス・キャロルの「&lt;a
  href=&#34;https://www.gutenberg.org/files/11/11-h/11-h.htm&#34;
    target=&#34;_blank&#34;
  &gt;不思議の国のアリス&lt;/a&gt;」の第01章のテキストファイルです．
このファイルの単語の頻度を求めてください．&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
