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

  • Visual Studio Code 1.56.2へ更新
  • Excel VBA 個人指導 (Webスクレイピング)
    MicrosoftHTML Object Library, Microsoft Internet Controls 参照設定
    getElementsByClassName、getElementsByName
  • エクセルVBA ブレークポイントの設定・解除
  • フィットネスジム会員登録(スマホ操作)
  • PowerDirect 動画編集 不透明度の設定
  • QGIS
    フリーでオープンソースの地理情報システム https://qgis.org/ja/site/
  • その問題、デジタル地図が解決します ―はじめてのGIS – 2021/3/19
  • 令和3年 経済センサス インターネット回答 https://www.e-survey.go.jp/
  • スマホ 路線案内の使い方
  • Microsoft Jigsaw インストールと使い方(小学生教室 マウス基本操作のため)
  • KF94マスク 5/10/20/50枚セット 個別包装 4層構造 立体構造 男女兼用 アマゾン通販
  • au ガラケーからスマホへの機種変更(回線開通と試験)、電話帳、写真の移行
  • windows 10 スタートアップフォルダ shell:startup
  • スマホ基本操作
    ホーム画面、アプリ、アイコンとは?
    アイコンの整理
    インストールとアンインストールとは?
  • Excel から PDF形式で出力
  • http://www.kagakueizo.org/ 科学映像館
  • 楽天トラベルの使い方
  • Gmail アカウントの作成
  • Microsoft Edgeのインストール(Windows8.1)
  • PowerPoint 図として保存
  • PCのリフレッシュ
  • iPad 初期設定(icloud.comメールアドレスの作成)、スリープ/スリープ解除ボタンの使い方
  • サイボウズの使い方
  • 食べログ 営業時間の編集
  • JRA-VAL アプリのインストールと使い方
  • Windows ワードパッド ページ設定
  • 三井住友銀行アプリのインストールとパスワードカード有効化
  • スマホ教室 横浜市営バス、臨港バス 時刻表の見方
  • ワクチン接種予約方法(横浜市 新型コロナウイルスのワクチン接種予約について
  • 迷惑メール対策

【Amazon】注文状況が変更されました
amazonアカウントの一時停止のお知らせ
【Amazon】お届け先設定を補足を確認する
ヨドバシ・ドット・コム:カード情報更新のお知らせ
しいAmazonアカウントを確認します
【重要なお知らせ】カード情報更新のお知らせ
お宅のETCサービスを一時停止しました
【三井住友カード】ANA VISA プリペイドカードお知らせ
Amazonアカウントを利用制限しています
重要】<三井住友カード>ご利用確認のお願い
[配送管理センター] ※ご不在の為センターへ持ち帰りました
【重要】カード情報更新のお知らせ

  • ヤフオク 新規登録
  • パイソン プログラミング入門 range(), iterable, break, continue
>>> for i in range(20, 80, 8):
...     print(i)
...
20
28
36
44
52
60
68
76

>>> for x in range(9):
...     if x == 3:
...             break
...     print(x)
...
0
1
2

>>> for x in range(10):
...     if x == 5:
...             continue
...     print(x)
...
0
1
2
3
4
6
7
8
9
  • パイソン プログラミング入門 while文
>>> a, b = 0, 1
>>> while b < 30:
...     print(b)
...     a, b = b, a + b
...
1
1
2
3
5
8
13
21

import random
alpha = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
char = random.choice(alpha)
while True:
    val = input('>>>?')
    if char == val:
        print('OK')
        break
    else:
        print('NG')
  • パイソン プログラミング入門 ファイルの読み込み
>>> with open('sample.txt', 'r') as f:
...     for line in f:
...             print(line.strip())
...
testtest
test
testtest
test
testtest
test
  • パイソン プログラミング入門 ファイル すべての読み込み
>>> with open('sample.txt', 'r') as f:
...     l = f.readlines()
...
>>> print(l)
['testtest\n', 'test\n', 'testtest\n', 'test\n', 'testtest\n', 'test']
  • パイソン プログラミング入門 ファイル バイナリファイル
>>> with open('test.dat', 'wb') as f:
...     f.write(b'456789')
...
6
>>> with open('test.dat', 'rb') as f:
...     data = f.read(6)
...     print(data)
...
b'456789'

>>> f = open('test.dat', 'rb')
>>> f.tell()
0
>>> f.read(2)
b'45'
>>> f.tell()
2
>>> f.seek(4)
4
>>> f.tell()
4
>>> f.read(2)
b'89'
>>> f.close()
  • パイソン プログラミング入門 ファイル pickle
>>> import pickle
>>> num = 200
>>> with open('sample.pkl', 'wb') as f:
...     pickle.dump(num, f)
...
>>> f
<_io.BufferedWriter name='sample.pkl'>
>>> with open('sample.pkl', 'r') as f:
...     num = pickle.load(f)
...     print(num)
...
>>> with open('sample.pkl', 'rb') as f:
...     load_num = pickle.load(f)
...     print(load_num)
...
200
>>>
  • パイソン プログラミング入門 関数
>>> def my_func():
...     pass
...
>>> my_func()
>>> my_func
<function my_func at 0x0000024A598FB048>
>>> # 変数を加える
>>> def my_func(x):
...     pass
...
>>> my_func() # 変数なしで呼び出す
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: my_func() missing 1 required positional argument: 'x'
>>> my_func(1)
>>>
>>> # 関数 値を返す
>>> def my_func(x):
...     return x
...
>>> my_func(1)
1
>>> my_func('test')
'test'
>>>
  • パイソン プログラミング入門 関数 リストの変更
>>> def my_func(x):
...     x.append(1)
...
>>> my_list = [0, 1, 2, 3, 4]
>>> my_func(my_list)
>>> my_list
[0, 1, 2, 3, 4, 1]
>>>
  • パイソン プログラミング入門 関数 フェボナッチ数列
>>> def fib(n):
...     a, b = 0, 1
...     while a < n:
...             print(a, end=' ')
...             a, b = b, a+b
...
>>> fib(5000)
0 1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987 1597 2584 4181
  • パイソン プログラミング入門 関数 キーワード引数
>>> def house_for_rent(bedrooms, walk_min, house_type, rent_yen):
...     return {"bedrooms":bedrooms, 'walk_min':walk_min, 'house_type':house_type, 'rent_yen':rent_yen}
...
>>> house_for_rent(2, 15, 'apartment', 60)
{'bedrooms': 2, 'walk_min': 15, 'house_type': 'apartment', 'rent_yen': 60}
>>> house_for_rent(2, 'mansion', 2, 100)
{'bedrooms': 2, 'walk_min': 'mansion', 'house_type': 2, 'rent_yen': 100}
>>> house_for_rent(rent_yen=100, walk_min=2, bedrooms=2, house_type='mansion')
{'bedrooms': 2, 'walk_min': 2, 'house_type': 'mansion', 'rent_yen': 100}
>>>
  • パイソン プログラミング入門 関数 引数デフォルト値
>>> def house_for_rent(bedrooms, walk_min, house_type, rent_yen):
>>> house_for_rent()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: house_for_rent() missing 4 required positional arguments: 'bedrooms', 'walk_min', 'house_type', and 'rent_yen'
>>> def house_for_rent(bedrooms=2, walk_min=6, house_type='apart', rent_yen='50'):
...     return {"bedrooms":bedrooms, 'walk_min':walk_min, 'house_type':house_type, 'rent_yen':rent_yen}
...
>>> house_for_rent()
{'bedrooms': 2, 'walk_min': 6, 'house_type': 'apart', 'rent_yen': '50'}
>>>
  • パイソン プログラミング入門 関数 位置引数 タプル、辞書
>>> def show_args(*args):
...     print('positional args:', args)
...     return args
...
>>> show_args(4, 5, 6, 7, 8, 'AA')
positional args: (4, 5, 6, 7, 8, 'AA')
(4, 5, 6, 7, 8, 'AA')
>>> def shows_kwargs(**kwargs):
...     print('key args:', kwargs)
...     return kwargs
...
>>> shows_kwargs(pasta='pasta', drink='coke', main_dish='beef', n_customers = 3)
key args: {'pasta': 'pasta', 'drink': 'coke', 'main_dish': 'beef', 'n_customers': 3}
{'pasta': 'pasta', 'drink': 'coke', 'main_dish': 'beef', 'n_customers': 3}
>>>
  • パイソン プログラミング入門 関数 グローバル変数 ローカル変数
animal = 'cat'
print("animal:", animal)

def my_func():
        animal = 'dog'
        print("animal in my_func", animal)

my_func()
print("animal after my_func:", animal)
  • パイソン プログラミング入門 関数 変数に代入
>>> sum([1, 2, 3, 4])
10
>>> sum(range(10))
45
>>> add_all = sum
>>> add_all([1,2,3,4,5])
15
>>> add_all(range(11))
55
>>>
  • パイソン プログラミング入門 関数 引数に関数
>>> def say_hello():
...     print('hello')
...
>>> say_hello()
hello
>>>
>>> def run_and_func(func):
...     for i in range(3):
...             func()
...
>>> run_and_func(say_hello)
hello
hello
hello
>>>
  • パイソン プログラミング入門 関数 戻り値に関数
>>> def multi_func(number):
...     if number == 0:
...             print('min', end=" ")
...             return min
...     if number == 1:
...             print('max', end=" ")
...             return max
...     else:
...             print('sum' , end=" ")
...             return sum
...
>>> num_list = [1, 2, 3, 4]
>>> for i in [0, 1, 2]:
...     print(multi_func(i)(num_list))
...
min 1
max 4
sum 10
>>>
  • 楽天 新規登録
日本IBM出身
ホームページビルダー元開発責任者
鎌田裕二
責任指導
横浜市鶴見区のパソコン教室⇒

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