Results of 1 - 10 of about 19 for bacon (0.010 sec.)
- modulefinder --- スクリプト中で使用されているモジュールの検索 — Python 3.14.8 ... 13045
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » modulefinder --- スクリプト中で使用されているモジュールの検索 テーマ 自動 ライト ダーク | modulefinder ---
...をモジュールに結びつける辞書。 ModuleFinder の使用例 を参照して下さい。 ModuleFinder の使用例 ¶ 解析対象のスクリプトはこれ (bacon.py) です: import re , itertools try : import baconhameggs except ImportError : pass try : import guido.python.ham except I...mportError : pass bacon.py のレポートを出力するスクリプトです: from modulefinder import ModuleFinder finder = ModuleFinder () finder . run_script...( 'bacon.py' ) print ( 'Loaded modules:' ) for name , mod in finder . modules . items (): print ( ' %s : ' % name , end = '' ) prin... - https://man.mtool.work/python/3.14/library/modulefinder.html
- modulefinder --- スクリプト中で使用されているモジュールの検索 — Python 3.14.8 ... 13045
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » モジュールのインポート » modulefinder --- スクリプト中で使用されているモジュールの検索 テーマ 自動 ライト ダーク | modulefinder ---
...をモジュールに結びつける辞書。 ModuleFinder の使用例 を参照して下さい。 ModuleFinder の使用例 ¶ 解析対象のスクリプトはこれ (bacon.py) です: import re , itertools try : import baconhameggs except ImportError : pass try : import guido.python.ham except I...mportError : pass bacon.py のレポートを出力するスクリプトです: from modulefinder import ModuleFinder finder = ModuleFinder () finder . run_script...( 'bacon.py' ) print ( 'Loaded modules:' ) for name , mod in finder . modules . items (): print ( ' %s : ' % name , end = '' ) prin... - https://man.mtool.work/python/3.14/library/modulefinder.html
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 9084
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ
...り、先頭文字列に短縮して指定できます: >>> parser = argparse . ArgumentParser ( prog = 'PROG' ) >>> parser . add_argument ( '-bacon' ) >>> parser . add_argument ( '-badger' ) >>> parser . parse_args ( '-bac MMM' . split ()) Namespace(bacon='MMM', badger=...None) >>> parser . parse_args ( '-bad WOOD' . split ()) Namespace(bacon=None, badger='WOOD') >>> parser . parse_args ( '-ba BA' . split ()) usage: PROG [-h] [-bacon BACON] [-badger BADGER] PROG:...error: ambiguous option: -ba could match -badger, -bacon 先頭の文字が同じ引数が複数ある場合に短縮指定を行うとエラーを発生させます。この機能は allow_abbrev に False を指定することで... - https://man.mtool.work/python/3.14/library/argparse.html
- difflib --- 差分の計算の補助 — Python 3.14.8 ドキュメント 9084
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » difflib --- 差分の計算の補助 テーマ 自動 ライト ダーク | difflib --- 差分の計算の補助 ¶ ソースコード: Lib/di
...マットで表されます。指定しなかった場合のデフォルト値は、空文字列です。 >>> import sys >>> from difflib import * >>> s1 = [ 'bacon \n ' , 'eggs \n ' , 'ham \n ' , 'guido \n ' ] >>> s2 = [ 'python \n ' , 'eggy \n ' , 'hamster \n ' , 'guido \n ' ] >>> sys...( s1 , s2 , fromfile = 'before.py' , ... tofile = 'after.py' )) *** before.py --- after.py *************** *** 1,4 **** ! bacon ! eggs ! ham guido --- 1,4 ---- ! python ! eggy ! hamster guido より詳細な例は、 difflib のコマンドラインインターフェース...fication times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. >>> s1 = [ 'bacon \n ' , 'eggs \n ' , 'ham \n ' , 'guido \n ' ] >>> s2 = [ 'python \n ' , 'eggy \n ' , 'hamster \n ' , 'guido \n ' ] >>> sys... - https://man.mtool.work/python/3.14/library/difflib.html
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 9084
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ
...り、先頭文字列に短縮して指定できます: >>> parser = argparse . ArgumentParser ( prog = 'PROG' ) >>> parser . add_argument ( '-bacon' ) >>> parser . add_argument ( '-badger' ) >>> parser . parse_args ( '-bac MMM' . split ()) Namespace(bacon='MMM', badger=...None) >>> parser . parse_args ( '-bad WOOD' . split ()) Namespace(bacon=None, badger='WOOD') >>> parser . parse_args ( '-ba BA' . split ()) usage: PROG [-h] [-bacon BACON] [-badger BADGER] PROG:...error: ambiguous option: -ba could match -badger, -bacon 先頭の文字が同じ引数が複数ある場合に短縮指定を行うとエラーを発生させます。この機能は allow_abbrev に False を指定することで... - https://man.mtool.work/python/3.14/library/argparse.html
- difflib --- 差分の計算の補助 — Python 3.14.8 ドキュメント 9084
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » difflib --- 差分の計算の補助 テーマ 自動 ライト ダーク | difflib --- 差分の計算の補助 ¶ ソースコード: Lib/di
...マットで表されます。指定しなかった場合のデフォルト値は、空文字列です。 >>> import sys >>> from difflib import * >>> s1 = [ 'bacon \n ' , 'eggs \n ' , 'ham \n ' , 'guido \n ' ] >>> s2 = [ 'python \n ' , 'eggy \n ' , 'hamster \n ' , 'guido \n ' ] >>> sys...( s1 , s2 , fromfile = 'before.py' , ... tofile = 'after.py' )) *** before.py --- after.py *************** *** 1,4 **** ! bacon ! eggs ! ham guido --- 1,4 ---- ! python ! eggy ! hamster guido より詳細な例は、 difflib のコマンドラインインターフェース...fication times are normally expressed in the ISO 8601 format. If not specified, the strings default to blanks. >>> s1 = [ 'bacon \n ' , 'eggs \n ' , 'ham \n ' , 'guido \n ' ] >>> s2 = [ 'python \n ' , 'eggy \n ' , 'hamster \n ' , 'guido \n ' ] >>> sys... - https://man.mtool.work/python/3.14/library/difflib.html
- 組み込み型 — Python 3.14.8 ドキュメント 8588
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主
...オペランドとして任意のイテラブルを取ることができます。 辞書ビューの使用法の例: >>> dishes = { 'eggs' : 2 , 'sausage' : 1 , 'bacon' : 1 , 'spam' : 500 } >>> keys = dishes . keys () >>> values = dishes . values () >>> # iteration >>> n = 0 >>> for val in...n ) 504 >>> # keys and values are iterated over in the same order (insertion order) >>> list ( keys ) ['eggs', 'sausage', 'bacon', 'spam'] >>> list ( values ) [2, 1, 1, 500] >>> # view objects are dynamic and reflect dict changes >>> del dishes [ 'egg...s' ] >>> del dishes [ 'sausage' ] >>> list ( keys ) ['bacon', 'spam'] >>> # set operations >>> keys & { 'eggs' , 'bacon' , 'salad' } {'bacon'} >>> keys ^ { 'sausage' , 'juice' } == {... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8332
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...ack >>> traceback . format_list ([( 'spam.py' , 3 , '<module>' , 'spam.eggs()' ), ... ( 'eggs.py' , 42 , 'eggs' , 'return "bacon"' )]) [' File "spam.py", line 3, in <module>\n spam.eggs()\n', ' File "eggs.py", line 42, in eggs\n return "bacon"\n'] >>>... - https://man.mtool.work/python/3.14/library/traceback.html
- traceback --- スタックトレースの表示または取得 — Python 3.14.8 ドキュメント 8332
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » traceback --- スタックトレースの表示または取得 テーマ 自動 ライト ダーク | traceback --- スタックトレー
...ack >>> traceback . format_list ([( 'spam.py' , 3 , '<module>' , 'spam.eggs()' ), ... ( 'eggs.py' , 42 , 'eggs' , 'return "bacon"' )]) [' File "spam.py", line 3, in <module>\n spam.eggs()\n', ' File "eggs.py", line 42, in eggs\n return "bacon"\n'] >>>... - https://man.mtool.work/python/3.14/library/traceback.html
- random --- 疑似乱数を生成する — Python 3.14.8 ドキュメント 8076
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » random --- 疑似乱数を生成する テーマ 自動 ライト ダーク | random --- 疑似乱数を生成する ¶ ソースコード: Lib/
...コマンドラインの例 ¶ 以下は random のコマンドラインインターフェースの例です: $ # Choose one at random $ python -m random egg bacon sausage spam "Lobster Thermidor aux crevettes with a Mornay sauce" Lobster Thermidor aux crevettes with a Mornay sauce $ #...oating-point number $ python -m random 1 .8 1.7080016272295635 $ # With explicit arguments $ python -m random --choice egg bacon sausage spam "Lobster Thermidor aux crevettes with a Mornay sauce" egg $ python -m random --integer 6 3 $ python -m random... - https://man.mtool.work/python/3.14/library/random.html