<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule" >
  <channel>
  <title>からすまる日誌</title>
  <link>http://karasumaru.ko-me.com/</link>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://karasumaru.ko-me.com/RSS/" />
  <description></description>
  <lastBuildDate>Sun, 03 Jul 2022 16:25:48 GMT</lastBuildDate>
  <language>ja</language>
  <copyright>© Ninja Tools Inc.</copyright>
  <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" />

    <item>
    <title>カテゴリ一覧</title>
    <description>
    <![CDATA[<a href="http://karasumaru.ko-me.com/python/" title="">Python</a>（ぼちぼちと）<a title="" href="http://karasumaru.ko-me.com/javascript/" target="_self"><br />
JavaScript</a><br />
<a title="" href="http://karasumaru.ko-me.com/html-css/" target="_self">HTML,CSS<br />
</a><a title="" href="http://karasumaru.ko-me.com/java/" target="_self">JAVA<br />
</a><a title="" href="http://karasumaru.ko-me.com/php/">PHP</a><br />
<a title="" href="http://karasumaru.ko-me.com/mysql/">mySQL</a><br />
<br />
<a title="" href="http://karasumaru.ko-me.com/it%E3%83%91%E3%82%B9%E3%83%9D%E3%83%BC%E3%83%88%E8%87%AA%E7%BF%92/" target="_self">ITpassport自習<br />
</a><a title="" href="http://karasumaru.ko-me.com/%E3%81%9D%E3%81%AE%E6%97%A5%E3%81%AE%E7%B5%82%E3%82%8F%E3%82%8A%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89/">その日の終わりのコード<br />
</a><br />
<hr /><span style="text-decoration: line-through;"></span><a href="http://apikarasumaru.ko-me.com/" title=""><br />
からすまる日誌 JAVA<br />
</a>(javaの記事を再構築)<br />
<br />
<a href="http://karasumaru.sugo-roku.com/" title="">からすまる日誌JavaScript<br />
</a>(javaScript記事を再構築)<br />
<br />
<a href="http://karasumaru.tosalog.com/" title="">からすまる日誌mySQL</a><br />
(mySQL記事を再構築)<br />
<br />
<a href="http://karasumarucss.fukuwarai.net/" title="">からすまる日誌css</a><br />
再構築中<br />
<br />
<br />
<br />
banner:<br />
<img src="//karasumaru.ko-me.com/File/kara-proto.png" alt="" /><br />
<br />
<hr /><br />
<br />
<a title="" href="http://karasumaru.ko-me.com/java%20api%20%E3%83%AA%E3%83%B3%E3%82%AF/">java APIリンク</a><br />
<a title="" href="http://karasumaru.karou.jp/">からすまるHTML(つくったものをそのままUP)<br />
<br />
</a>]]>
    </description>
    <category>未選択</category>
    <link>http://karasumaru.ko-me.com/%E6%9C%AA%E9%81%B8%E6%8A%9E/%E3%82%AB%E3%83%86%E3%82%B4%E3%83%AA%E4%B8%80%E8%A6%A7</link>
    <pubDate>Sun, 17 Nov 2030 02:49:52 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/97</guid>
  </item>
    <item>
    <title>copy table</title>
    <description>
    <![CDATA[<a target="_blank" href="//karasumaru.ko-me.com/File/copy.png" title=""><img src="//karasumaru.ko-me.com/Img/1656865536/" alt="" /></a>]]>
    </description>
    <category>xampp</category>
    <link>http://karasumaru.ko-me.com/xampp/copy%20table</link>
    <pubDate>Sun, 03 Jul 2022 16:25:48 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/801</guid>
  </item>
    <item>
    <title>中身が０の配列を新規作成</title>
    <description>
    <![CDATA[<div>&nbsp; &nbsp; $student_red = array();</div>
<div>&nbsp; &nbsp; $student_red = <span style="color: #ff0000;">array_pad</span>($student_red, $num, 0);</div>]]>
    </description>
    <category>PHP</category>
    <link>http://karasumaru.ko-me.com/php/%E4%B8%AD%E8%BA%AB%E3%81%8C%EF%BC%90%E3%81%AE%E9%85%8D%E5%88%97%E3%82%92%E6%96%B0%E8%A6%8F%E4%BD%9C%E6%88%90</link>
    <pubDate>Wed, 21 Oct 2020 13:49:17 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/798</guid>
  </item>
    <item>
    <title>配列の最大値</title>
    <description>
    <![CDATA[<div>hoge = input().rstrip().split(" ")</div>
<div>#print(hoge)</div>
<div></div>
<div>print(<strong>max(hoge)</strong>)</div>
<div></div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/%E9%85%8D%E5%88%97%E3%81%AE%E6%9C%80%E5%A4%A7%E5%80%A4</link>
    <pubDate>Sat, 10 Oct 2020 01:28:27 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/797</guid>
  </item>
    <item>
    <title>複数行の文字列を配列に入れる</title>
    <description>
    <![CDATA[<div># coding: utf-8</div>
<div># 複数行データをリストに格納する</div>
<div></div>
<div><strong>import sys</strong></div>
<div><strong>for line in sys.stdin.readlines():</strong></div>
<div>&nbsp; &nbsp; print(line.rstrip())</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 複数行データをリストに格納する</div>
<div></div>
<div>import sys</div>
<div><strong>array =[]&nbsp;</strong>#最初に宣言しておく</div>
<div>for line in sys.stdin.readlines():</div>
<div>&nbsp; &nbsp;<strong> array.append(line.rstrip())</strong></div>
<div>&nbsp; &nbsp; #print(line.rstrip())</div>
<div>print(array)</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 複数行のカンマ区切りデータを出力する</div>
<div></div>
<div>import sys</div>
<div>for line in sys.stdin.readlines():</div>
<div><span style="white-space: pre;"> </span># ここに、文字列を分割して、出力するコードを書く</div>
<div><span style="white-space: pre;"> </span>enemy = line.rstrip().split(",")</div>
<div><span style="white-space: pre;"> </span></div>
<div><span style="white-space: pre;"> </span>print(enemy[0]+"が"+enemy[1]+"匹現れた")</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># リストを使ったランダムくじ</div>
<div># スライム,モンスター,ドラゴン,魔王</div>
<div></div>
<div>import random</div>
<div></div>
<div>line = input().rstrip().split(",")</div>
<div>for enemy in line:</div>
<div><span style="white-space: pre;"> </span>print(enemy + "が現れた！")</div>
<div></div>
<div>#random</div>
<div>num = len(line)</div>
<div>print("敵は"+str(num)+"匹")</div>
<div></div>
<div>#randomな数を生成</div>
<div>attack = random.randrange(num)</div>
<div></div>
<div>print(line[attack]+"にこうげき！"+line[attack]+"をたおした")</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># じゃんけんプログラム</div>
<div></div>
<div>import random</div>
<div># 標準入力から1行取得</div>
<div>line = input().rstrip()</div>
<div></div>
<div># カンマで分割して、リストに代入</div>
<div>janken = line.split(",")</div>
<div>#print(janken)</div>
<div></div>
<div># リストの要素数を変数に代入</div>
<div>num = len(janken)</div>
<div>#print(num)</div>
<div></div>
<div># リストの中身を出力</div>
<div>#print(janken)</div>
<div></div>
<div># ランダムに選んだリストの要素を出力</div>
<div>print(janken[random.randrange(num)])</div>
<div></div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># おみくじプログラム</div>
<div></div>
<div>import random</div>
<div>line = input().rstrip()</div>
<div></div>
<div></div>
<div># 今回は自力で全部書いてみよう！</div>
<div></div>
<div># カンマで分割して、リストに代入</div>
<div>omikuji = line.split(",")</div>
<div></div>
<div># リストの要素数を変数に代入</div>
<div>num = len(omikuji)</div>
<div></div>
<div># リストの中身を出力</div>
<div>print(omikuji)</div>
<div></div>
<div># ランダムに選んだリストの要素を出力</div>
<div>print(omikuji[random.randrange(num)])</div>
<div></div>
<div></div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/%E8%A4%87%E6%95%B0%E8%A1%8C%E3%81%AE%E6%96%87%E5%AD%97%E5%88%97%E3%82%92%E9%85%8D%E5%88%97%E3%81%AB%E5%85%A5%E3%82%8C%E3%82%8B</link>
    <pubDate>Thu, 08 Oct 2020 11:19:06 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/796</guid>
  </item>
    <item>
    <title>リスト</title>
    <description>
    <![CDATA[<div><strong>pythonでは配列のことを「リスト」という</strong></div>
<div><br />
インデックスの概念は同じ</div>
<div>０から始まる</div>
<div></div>
<div>print(team[0])</div>
<div>print(team[n+1]</div>
<div>print(len(team))</div>
<div>など</div>
<div>&nbsp;</div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># リストを作成する</div>
<div>&nbsp;</div>
<div>player_1 = "yusya"</div>
<div>player_2 = "mahou"</div>
<div>&nbsp;</div>
<div>team = ["yusya","mahou",100,player_1]</div>
<div>print(team)</div>
<div>&nbsp;</div>
<div>--&gt;出力結果</div>
<div>['yusya', 'mahou', 100, 'yusya']</div>
<div></div>
<div><hr /></div>
<div># 変数で、リストに代入する</div>
<div>&nbsp;</div>
<div>player_1 = "勇者"</div>
<div>player_2 = "魔法使い"</div>
<div>player_3 = "戦士"</div>
<div>&nbsp;</div>
<div># player_1 ~ 3を、リストに記述して、print関数で出力してください。</div>
<div>list = [player_1,player_2,player_3]</div>
<div>print(list)</div>
<div></div>
<div><hr /></div>
<div></div>
<div># coding: utf-8</div>
<div># リストの要素を取り出す</div>
<div>&nbsp;</div>
<div>team = ["勇者", "魔法使い"]</div>
<div>print(team)</div>
<div>num = 0</div>
<div>print(team[num+1])</div>
<div>print(len(team))</div>
<div></div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># リストの要素を操作する</div>
<div>&nbsp;</div>
<div>team = ["勇者", "魔法使い"]</div>
<div>print(team)</div>
<div>print(team[0])</div>
<div>&nbsp;</div>
<div><strong>team.append("戦士")</strong> #要素を追加</div>
<div>print(team)</div>
<div>team.append("ドラゴン")</div>
<div>print(team)</div>
<div><strong>team.pop(2</strong>) #要素を消す</div>
<div>print(team)</div>
<div>&nbsp;</div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># ループでリストを操作する</div>
<div>&nbsp;</div>
<div>team = ["勇者", "戦士", "魔法使い"]</div>
<div>print(team)</div>
<div>&nbsp;</div>
<div>for i in team:</div>
<div>&nbsp; &nbsp; print(i)</div>
<div></div>
<div><hr /></div>
<div></div>
<div># coding: utf-8</div>
<div># ループでリストを操作する</div>
<div>&nbsp;</div>
<div>team = ["勇者", "戦士", "魔法使い"]</div>
<div>&nbsp;</div>
<div></div>
<div>print("&lt;select name = 'job'&gt;")</div>
<div>for job in team:</div>
<div>&nbsp; &nbsp; print("&lt;option&gt;" + job + "&lt;/option&gt;")</div>
<div>print("&lt;/select&gt;")</div>
<div>&nbsp;</div>
<div>---&gt;html出力</div>
<div></div>
<div><a target="_blank" href="//karasumaru.ko-me.com/File/2020100705.png" title=""><img src="//karasumaru.ko-me.com/Img/1602070918/" alt="" /></a></div>
<div></div>
<div><hr /></div>
<div>listの要素の合計値：<br />
&nbsp;</div>
<div><strong>print(sum(list))</strong></div>
<div>&nbsp;</div>
<div><hr /></div>
<div>カンマ区切りの文字列を配列に入れる</div>
<div>&nbsp;</div>
<div># coding: utf-8</div>
<div># 取り込んだデータをリストに格納する</div>
<div>&nbsp;</div>
<div><strong>line = input().rstrip().split(",")</strong></div>
<div>print(line)</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 取り込んだデータをリストに格納する</div>
<div>&nbsp;</div>
<div>line = input().rstrip().split(",")</div>
<div>print(line)</div>
<div>print(len(line))</div>
<div>&nbsp;</div>
<div>for i in line:</div>
<div>&nbsp; &nbsp; print(i+"が現れた")</div>
<div>&nbsp;</div>
<div>--&gt;出力結果<br />
&nbsp;</div>
<div>['q', 'q', 'w']</div>
<div>3</div>
<div>qが現れた</div>
<div>qが現れた</div>
<div>wが現れた</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div>#文字列をカンマで分割する</div>
<div>&nbsp;</div>
<div>team_str = "勇者,戦士,忍者,魔法使い"</div>
<div>list = team_str<strong>.split(",")</strong></div>
<div>print(list)</div>
<div>&nbsp;</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div>#英文の単語数を数える</div>
<div>&nbsp;</div>
<div>str = "One cold rainy day when my father was a little boy he met an old alley cat on his street"</div>
<div>list = str<strong>.split(" ")</strong> #半角スペースで区切る</div>
<div>print(len(list))</div>
<div></div>
<div></div>
<div></div>
<div></div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/%E3%83%AA%E3%82%B9%E3%83%88</link>
    <pubDate>Wed, 07 Oct 2020 11:44:05 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/794</guid>
  </item>
    <item>
    <title>復習的に標準入力</title>
    <description>
    <![CDATA[<div># coding: utf-8</div>
<div># 自分の得意な言語で</div>
<div># Let's チャレンジ！！</div>
<div></div>
<div>team = [8, 1, 3]</div>
<div>for i in team:</div>
<div>&nbsp; &nbsp; print (i)</div>
<div></div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 自分の得意な言語で</div>
<div># Let's チャレンジ！！</div>
<div></div>
<div>#i=1 #この行はいらないのか？なぜ？</div>
<div>for i in range(1000):</div>
<div>&nbsp; &nbsp; print (i+1)</div>
<div></div>
<div><hr /></div>
<div># 自分の得意な言語で</div>
<div># Let's チャレンジ！！</div>
<div></div>
<div>team = [8, 1, 3]</div>
<div>for i in team:</div>
<div>&nbsp; &nbsp; #print (i)</div>
<div>&nbsp; &nbsp; if i&lt;=len(team):</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; print(str(i)+" ", end="")</div>
<div>&nbsp; &nbsp; else:</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; print(str(i))</div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/%E5%BE%A9%E7%BF%92%E7%9A%84%E3%81%AB%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B</link>
    <pubDate>Wed, 07 Oct 2020 11:32:36 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/795</guid>
  </item>
    <item>
    <title>標準入力／切り捨て除算</title>
    <description>
    <![CDATA[<div># coding: utf-8</div>
<div># inputによる入力処理</div>
<div></div>
<div>line = int(input())</div>
<div>print(line*10)</div>
<div></div>
<div></div>
<div>よみこむのは数字でも文字でも文字列になっているので</div>
<div><strong>intとして数字をよみこみたかったらint()で囲む</strong></div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 標準入力とループ処理</div>
<div></div>
<div></div>
<div>count = int(input())</div>
<div>print("data "+str(count))</div>
<div></div>
<div>for i in range(count):</div>
<div>&nbsp; &nbsp; line = input().rstrip()</div>
<div>&nbsp; &nbsp; print("hello "+line)</div>
<div>&nbsp; &nbsp;&nbsp;</div>
<div>出力：</div>
<div>data 3</div>
<div>hello a</div>
<div>hello b</div>
<div>hello c</div>
<div></div>
<div><hr /></div>
<div></div>
<div>rstrip()</div>
<div>改行を削除する命令</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 標準入力とループ処理</div>
<div></div>
<div>line = int(input())</div>
<div>for i in range(line):</div>
<div>&nbsp; &nbsp; print("スライムがあらわれた")</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 西暦年と平成年の対応表を作る</div>
<div># 1989年から2016年までをループで出力</div>
<div># ループ内で、各西暦年を平成年に変換</div>
<div></div>
<div>for seireki in range(1989,2017):</div>
<div>&nbsp; &nbsp; print("西暦 "+str(seireki)+"年は　", end="")</div>
<div>&nbsp; &nbsp; heisei = seireki - 1988</div>
<div>&nbsp; &nbsp; print("平成"+str(heisei)+"年")</div>
<div></div>
<div><hr /></div>
<div>a = gets.to_i</div>
<div>b = gets.to_i</div>
<div>answer = a*b</div>
<div>puts answer</div>
<div></div>
<div><hr /></div>
<div><strong>割り算の結果を整数で欲しい：</strong></div>
<div>切り捨て除算を行なうための演算子は、ダブルスラッシュ( // )、</div>
<div></div>
<div>a // b</div>
<div></div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/%E6%A8%99%E6%BA%96%E5%85%A5%E5%8A%9B%EF%BC%8F%E5%88%87%E3%82%8A%E6%8D%A8%E3%81%A6%E9%99%A4%E7%AE%97</link>
    <pubDate>Sun, 04 Oct 2020 11:53:58 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/793</guid>
  </item>
    <item>
    <title>for in:/ while:</title>
    <description>
    <![CDATA[<div># coding: utf-8</div>
<div># for inによるループ処理</div>
<div>for i in range(10):</div>
<div>&nbsp; &nbsp; print("a")</div>
<div></div>
<div>for文には：がいる</div>
<div>繰り返し部分にはインデントが必須</div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># for inによるループ処理</div>
<div>for i in range(6,10):</div>
<div>&nbsp; &nbsp; print("a"+str(i))</div>
<div></div>
<div>この出力は</div>
<div>a6</div>
<div>a7</div>
<div>a8</div>
<div>a9</div>
<div></div>
<div>10までだしたかったら１１の指定が必要</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># whileによるループ処理</div>
<div></div>
<div>i=1</div>
<div>while i &lt;=10:</div>
<div>&nbsp; &nbsp; print(i)</div>
<div>&nbsp; &nbsp; i = i+1</div>
<div></div>
<div>whileをつかうときは抜けられるようにi=i+1を忘れずに</div>
<div>i += 1と記述しても良い</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># whileによるループ処理</div>
<div></div>
<div>i=5</div>
<div>while i&gt;0:</div>
<div>&nbsp; &nbsp; print(i)</div>
<div>&nbsp; &nbsp; i = i-1</div>
<div></div>
<div><hr /></div>
<div># coding: utf-8</div>
<div># 年齢入力のプルダウン作成</div>
<div>print("&lt;select name=\'age\'&gt;")</div>
<div>for age in range(10):</div>
<div>&nbsp; &nbsp; print("&lt;option&gt;"+str(age+1)+"才&lt;/option&gt;")</div>
<div>print("&lt;/select&gt;")</div>
<div></div>
<div></div>]]>
    </description>
    <category>python</category>
    <link>http://karasumaru.ko-me.com/python/for%20in--%20while-</link>
    <pubDate>Sun, 04 Oct 2020 09:58:08 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/792</guid>
  </item>
    <item>
    <title>designs</title>
    <description>
    <![CDATA[デザイン模倣練習<br />
<br />
<a target="_blank" href="//karasumaru.ko-me.com/File/2020100207.PNG" title=""><img src="//karasumaru.ko-me.com/Img/1601629570/" alt="" /></a> <br />
<br />
低スぺのノーパソだといらすとれーたがまともに動かなかったので<br />
inkscapeを試している。<br />
さすがにイラストのオブジェクトはべた張りした。<br />
レイアウトと文字だけ<br />
<br />
<strong>inkscapeの「縦書き文字」はpngなどにちゃんと変換されない<br />
svgをウェブにアップしてブラウザで見るとやはり縦書き文字は化けている<br />
<br />
</strong>テキストを分解する必要があるのだろうか<br />
<br />
<br />
<br />
<br />
<br />
<br />
]]>
    </description>
    <category>designs</category>
    <link>http://karasumaru.ko-me.com/designs/designs</link>
    <pubDate>Fri, 02 Oct 2020 11:06:58 GMT</pubDate>
    <guid isPermaLink="false">karasumaru.ko-me.com://entry/791</guid>
  </item>

    </channel>
</rss>