【授業事例】パソコン教室スマホ・タブレット教室 プログラミング教室 キュリオステーション鶴見校

  • Windows 10 S モード オフ(Google Chromeインストールのため)
  • d払いアプリ インストールと使い方、買い物
    dショッピング|過去のご注文一覧|ドコモの通販サイト
  • スマホからパソコンへ GPXファイル(GPS eXchange Format)のコピー、地図へのマッピング(カシミール3D)
  • パイソン プログラミング入門
    トリプルクォート(三重引用符)の使い方
    AttributeError: module(object) ‘xxx’ has no attribute ‘yyy’
    def __init__(self, ….)
  • パイソン プログラミング入門
    Anaconda のインストール
  • パイソン TABキー (Anaconda Power Shell)
C:\ProgramData\Anaconda3\Lib\site-packages\pyreadline\rlmain.py

class BaseReadline(object):
    def __init__(self):
        self.allow_ctrl_c = False
        self.ctrl_c_tap_time_interval = 0.3

        self.debug = False
        self.bell_style = 'none'
        self.mark = -1
        self.console=MockConsole()
        self.disable_readline = True # 2021-04-16 17:38:22 ka
  • パイソン プログラミング入門 データ型
>>> type(3)
<class 'int'>
>>> type(3.1)
<class 'float'>
>>> c = 5
>>> type(c)
<class 'int'>
>>> type(c) is int
True
>>> type(c) is float
False
>>> isinstance(c, int)
True
>>>
  • パイソン プログラミング入門 リスト操作
>>> my_list
[-1, 1, 102, 103, 4, 5, 6, 7, 8]
>>> my_list = [0, 1, 2, 3, 4, 5, 6, 7, 8]
>>> my_list
[0, 1, 2, 3, 4, 5, 6, 7, 8]
>>> my_list[2:5] = [102, 103]
>>> my_list
[0, 1, 102, 103, 5, 6, 7, 8]
>>> my_list[1:1] = [555, 666, 777]
>>> my_list
[0, 555, 666, 777, 1, 102, 103, 5, 6, 7, 8]
>>> my_list[2:8] = [102, 103]
>>> my_list
[0, 555, 102, 103, 6, 7, 8]
>>> my_list[2:5] = []
>>> my_list
[0, 555, 7, 8]
>>>
  • パイソン プログラミング入門
    bin(), hex(), oct() 関数
    str(), int(), float() 関数
    ord() 関数 (ordinal)
    formatメソッド
    フォーマット済み文字列リテラル
    リスト append(), extend(), sort(), reverse()
    ブール型(真偽値)
  • 比較演算子
>>> x = 3
>>> print(x > 1)
True
>>> print(x < 1)
False
>>> 1 == 3
False
>>> 1 != 3
True
>>> 1 < 3
True
>>> 1 <= 3
True
>>> 1 > 3
False
>>> 3 >= 3
True
>>>
  • パイソン プログラミング入門 ブール演算子
>>> x = True
>>> y = True
>>> x and y
True
>>> y = False
>>> x and y
False
>>> x or y
True
>>> not x
False
>>> not y
True
>>>
  • パイソン プログラミング入門 in 演算子
>>> mylist = [1, 2, 3, 4, 5, 6]
>>> 2 in mylist
True
>>> 7 in mylist
False
>>> mystr = 'This is a pen.'
>>> 'pen' in mystr
True
>>> 'sun' in mystr
False
>>> 'p' in mystr
True
>>> 'sun' not in mystr
True
>>>
  • パイソン プログラミング入門 is 演算子
>>> x = None
>>> x is None
True
>>> x is not None
False
>>> abc is None
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'abc' is not defined
>>> None is None
True
>>>
  • パイソン プログラミング入門 エラー
    IndexError: string index out of range
    TypeError: ‘type’ object is not subscriptable
    TypeError: ‘str’ object does not support item assignment
    TypeError: ‘<‘ not supported between instances of ‘int’ and ‘str’
  • Windows 10 Shell
    findstrコマンドの使い方 (findstr -s)
日本IBM出身
ホームページビルダー元開発責任者
鎌田裕二
責任指導
横浜市鶴見区のパソコン教室⇒

お問い合わせ TEL:045-567-8393
【開校15年 総受講生 1,800名以上】
小学生から90才まで通学実績有