python 入門のページ一覧

slide-thumbnail
Python の主なキーワード • print 表示 • type 型名(クラス名)の取得 • if, else 条件分岐 • for, while 繰り返し • def 関数定義 • return 関数の評価値 • class クラス定義 • __init__ オブジェ...

pf-1. Python,Google Colaboratoryの#P13

slide-thumbnail
Python プログラムの実行 ① ソースコードをファイルに保存し,python コマ ンドで実行 python コマンドで実行. 実行時にファイル名を指定. ソースコードを ファイルに保存 • Python のインストール必要 https:/...

pf-1. Python,Google Colaboratoryの#P14

slide-thumbnail
Python プログラムの実行 ② Python コンソールを使用.Python プログラム を入れるたびに結果が得られる(対話的実行と言っ たりする). 実行 結果 実行 結果 python コマンド • Python のインストール必要 http...

pf-1. Python,Google Colaboratoryの#P15

slide-thumbnail
Python プログラムの実行 ③ Python ソースコードの編集,実行機能を持った アプリを利用 実行ボタン 編集画面 実行結果 PyScripter の画面 16

pf-1. Python,Google Colaboratoryの#P16

slide-thumbnail
Python プログラムの実行 ④ Python のノートブックを使用.Python プログ ラムを,コードセルの中に入れておく.コードセル 内のプログラムは,編集,実行可能. Python プログラム Python プログラム 実行結果...

pf-1. Python,Google Colaboratoryの#P17

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-1. Python,Google Colaboratoryの#P38

slide-thumbnail
Python のクラスとオブジェクト • 次の2つのオブジェクトを生成する Python プロ グラム x 5 170.51 'apple' y 3 40.97 ‘orange' qty weight name x = C(5, 170.51, 'apple') y = C(3, 40.97, 'orange') Py...

pf-8. メソッド,クラス,コンストラクタ,継承の#P4

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-8. メソッド,クラス,コンストラクタ,継承の#P18

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-7. 関数呼び出しの#P10

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-6. 式の抽象化と関数の#P14

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-5. リストと繰り返しの#P11

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-4. 条件分岐の#P13

slide-thumbnail
Python の主なデータの種類 データの種類 クラス名 int 整数 浮動小数 Python プログラムでの書き方 10 Decimal import decimal decimal.Decimal(10) float 1.23 complex 文字列 str "Hello, World\n" tru...

pf-3. 計算誤差,データの種類の#P4

slide-thumbnail
Python でのクラスの取得 Python では,type を用いてクラスを取得できる 5

pf-3. 計算誤差,データの種類の#P5

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-3. 計算誤差,データの種類の#P16

slide-thumbnail
Python の変数 • 変数:名前の付いたオブジェクトには,変数,関 数などがある(変数や関数は,数学の変数や関数 とは違う意味) • 変数は, 「値をコンピュータに覚えさせておくも の」として使うことができる 変...

pf-2. 式,変数の#P2

slide-thumbnail
Python 関連ページ • Python まとめページ https://www.kkaneko.jp/tools/man/python.html • Python プログラミングの基本 Python Tutor, VisuAlgo, Code Combat を使用 https://www.kkaneko.jp/pro/po/index.html...

pf-2. 式,変数の#P11

slide-thumbnail
Python プログラムの ソースコード x = 100 if (x > 20): print("big") else: print("small") s=0 for i in [1, 2, 3, 4, 5]: s=s+i print(s) Python オンラインでの Python プログラム 実行(Python Tutor を使...

po-1. プログラミング入門の#P2

slide-thumbnail
Python の主なキーワード • print 表示 • type 型名(クラス名)の取得 • if, else 条件分岐 • for, while 繰り返し • def 関数定義 • return 関数の評価値 • class クラス定義 • __init__ オブジェ...

po-1. プログラミング入門の#P16

slide-thumbnail
Python プログラムの実行 ① ソースコードをファイルに保存し,python コマ ンドで実行 python コマンドで実行. 実行時にファイル名を指定. ソースコードを ファイルに保存 • Python のインストール必要 https:/...

po-1. プログラミング入門の#P17

slide-thumbnail
Python プログラムの実行 ② Python コンソールを使用.Python プログラム を入れるたびに結果が得られる(対話的実行と言っ たりする). 実行 結果 実行 結果 python コマンド • Python のインストール必要 http...

po-1. プログラミング入門の#P18

slide-thumbnail
Python プログラムの実行 ③ Python ソースコードの編集,実行機能を持った アプリを利用 実行ボタン 編集画面 実行結果 PyScripter の画面 19

po-1. プログラミング入門の#P19

slide-thumbnail
Python プログラムの実行 ④ Python のノートブックを使用.Python プログ ラムを,コードセルの中に入れておく.コードセル 内のプログラムは,編集,実行可能. Python プログラム Python プログラム 実行結果...

po-1. プログラミング入門の#P20

slide-thumbnail
Python の使い方(Windows パソコン) • Python 処理系の起動(Windows の場合) • python または py -3.10 (3.10 はバージョン番号) • pip の起動(Windows の場合) • コマンドプロンプトを管理者として実行し...

po-1. プログラミング入門の#P22