Results of 1 - 10 of about 38 for answer (0.006 sec.)
- Argparse チュートリアル — Python 3.14.8 ドキュメント 14245
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー
...argument ( "-v" , "--verbose" , action = "store_true" , help = "increase output verbosity" ) args = parser . parse_args () answer = args . square ** 2 if args . verbose : print ( f "the square of { args . square } equals { answer } " ) else : print ( a...er . add_argument ( "-v" , "--verbosity" , type = int , help = "increase output verbosity" ) args = parser . parse_args () answer = args . square ** 2 if args . verbosity == 2 : print ( f "the square of { args . square } equals { answer } " ) elif args.... verbosity == 1 : print ( f " { args . square } ^2 == { answer } " ) else : print ( answer ) 実行してみましょう: $ python prog.py 4 16 $ python prog.py 4 -v usage: prog.py [-h] [-v VERB... - https://man.mtool.work/python/3.14/howto/argparse.html
- Argparse チュートリアル — Python 3.14.8 ドキュメント 14245
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー
...argument ( "-v" , "--verbose" , action = "store_true" , help = "increase output verbosity" ) args = parser . parse_args () answer = args . square ** 2 if args . verbose : print ( f "the square of { args . square } equals { answer } " ) else : print ( a...er . add_argument ( "-v" , "--verbosity" , type = int , help = "increase output verbosity" ) args = parser . parse_args () answer = args . square ** 2 if args . verbosity == 2 : print ( f "the square of { args . square } equals { answer } " ) elif args.... verbosity == 1 : print ( f " { args . square } ^2 == { answer } " ) else : print ( answer ) 実行してみましょう: $ python prog.py 4 16 $ python prog.py 4 -v usage: prog.py [-h] [-v VERB... - https://man.mtool.work/python/3.14/howto/argparse.html
- tkinter.messagebox --- Tkinter メッセージプロンプト — Python 3.14.8 ドキュメン... 9497
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.messagebox --- Tkinter メッセージプロンプト テーマ 自動 ライト ダーク | tkinter.message
...None , message = None , ** options ) ¶ Ask if operation should proceed. Shows buttons OK and CANCEL . Returns True if the answer is ok and False otherwise. tkinter.messagebox. askretrycancel ( title = None , message = None , ** options ) ¶ Ask if oper...ation should be retried. Shows buttons RETRY and CANCEL . Return True if the answer is retry and False otherwise. tkinter.messagebox. askyesno ( title = None , message = None , ** options ) ¶ Ask a question.... Shows buttons YES and NO . Returns True if the answer is yes and False otherwise. tkinter.messagebox. askyesnocancel ( title = None , message = None , ** options ) ¶ Ask a ques... - https://man.mtool.work/python/3.14/library/tkinter.messagebox.html
- tkinter.messagebox --- Tkinter メッセージプロンプト — Python 3.14.8 ドキュメン... 8978
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Graphical user interfaces with Tk » tkinter.messagebox --- Tkinter メッセージプロンプト テーマ 自動 ライト ダーク | tkinter.message
...None , message = None , ** options ) ¶ Ask if operation should proceed. Shows buttons OK and CANCEL . Returns True if the answer is ok and False otherwise. tkinter.messagebox. askretrycancel ( title = None , message = None , ** options ) ¶ Ask if oper...ation should be retried. Shows buttons RETRY and CANCEL . Return True if the answer is retry and False otherwise. tkinter.messagebox. askyesno ( title = None , message = None , ** options ) ¶ Ask a question.... Shows buttons YES and NO . Returns True if the answer is yes and False otherwise. tkinter.messagebox. askyesnocancel ( title = None , message = None , ** options ) ¶ Ask a ques... - https://man.mtool.work/python/3.14/library/tkinter.messagebox.html
- logging.config --- ログ記録の環境設定 — Python 3.14.8 ドキュメント 7893
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging.config --- ログ記録の環境設定 テーマ 自動 ライト ダーク | logging.config --- ログ記録
...name)-15s %(message)s' datefmt : '%Y-%m-%d %H:%M:%S' custom : () : my.package.customFormatterFactory bar : baz spam : 99.9 answer : 42 上記の YAML コード片は 3 つのフォーマッタを定義します。 1 つ目は、id が brief で、指定されたフォーマット文字列をもつ、...つ目のフォーマッタの設定をする部分辞書は: { '()' : 'my.package.customFormatterFactory' , 'bar' : 'baz' , 'spam' : 99.9 , 'answer' : 42 } で、ユーザ定義のインスタンス化が望まれることを示す特殊キー '()' を含みます。この場合、指定された呼び出し可能ファク...タは、以下の呼び出しによって返されるものとみなされます: my . package . customFormatterFactory ( bar = 'baz' , spam = 99.9 , answer = 42 ) 警告 上記の例で bar , spam または answer のようなキーワード引数に指定する値は、設定作業の途中で処理されることなくそ... - https://man.mtool.work/python/3.14/library/logging.config.html
- logging.config --- ログ記録の環境設定 — Python 3.14.8 ドキュメント 7893
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 汎用オペレーティングシステムサービス » logging.config --- ログ記録の環境設定 テーマ 自動 ライト ダーク | logging.config --- ログ記録
...name)-15s %(message)s' datefmt : '%Y-%m-%d %H:%M:%S' custom : () : my.package.customFormatterFactory bar : baz spam : 99.9 answer : 42 上記の YAML コード片は 3 つのフォーマッタを定義します。 1 つ目は、id が brief で、指定されたフォーマット文字列をもつ、...つ目のフォーマッタの設定をする部分辞書は: { '()' : 'my.package.customFormatterFactory' , 'bar' : 'baz' , 'spam' : 99.9 , 'answer' : 42 } で、ユーザ定義のインスタンス化が望まれることを示す特殊キー '()' を含みます。この場合、指定された呼び出し可能ファク...タは、以下の呼び出しによって返されるものとみなされます: my . package . customFormatterFactory ( bar = 'baz' , spam = 99.9 , answer = 42 ) 警告 上記の例で bar , spam または answer のようなキーワード引数に指定する値は、設定作業の途中で処理されることなくそ... - https://man.mtool.work/python/3.14/library/logging.config.html
- 9. クラス — Python 3.14.8 ドキュメント 7594
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 9. クラス テーマ 自動 ライト ダーク | 9. クラス ¶ クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新し
...用にも、書込み可能にもできます。書込み可能であれば、属性に代入することができます。モジュール属性は書込み可能で、 modname.the_answer = 42 と書くことができます。書込み可能な属性は、 del 文で削除することもできます。例えば、 del modname.the_answer は、 modna...me で指定されたオブジェクトから属性 the_answer を除去します。 名前空間は様々な時点で作成され、その寿命も様々です。組み込みの名前が入った名前空間は Python インタプリタが起... - https://man.mtool.work/python/3.14/tutorial/classes.html
- 9. クラス — Python 3.14.8 ドキュメント 7594
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 9. クラス テーマ 自動 ライト ダーク | 9. クラス ¶ クラスはデータと機能を組み合わせる方法を提供します。 新規にクラスを作成することで、新し
...用にも、書込み可能にもできます。書込み可能であれば、属性に代入することができます。モジュール属性は書込み可能で、 modname.the_answer = 42 と書くことができます。書込み可能な属性は、 del 文で削除することもできます。例えば、 del modname.the_answer は、 modna...me で指定されたオブジェクトから属性 the_answer を除去します。 名前空間は様々な時点で作成され、その寿命も様々です。組み込みの名前が入った名前空間は Python インタプリタが起... - https://man.mtool.work/python/3.14/tutorial/classes.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 7516
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...ents, Decimal(42) and Fraction(42) are treated as distinct calls with distinct results. In contrast, the tuple arguments ('answer', Decimal(42)) and ('answer', Fraction(42)) are treated as equivalent. The wrapped function is instrumented with a cache_p... - https://man.mtool.work/python/3.14/library/functools.html
- functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.14.8 ドキュメ... 7516
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » functools --- 高階関数と呼び出し可能オブジェクトの操作 テーマ 自動 ライト ダーク | functools ---
...ents, Decimal(42) and Fraction(42) are treated as distinct calls with distinct results. In contrast, the tuple arguments ('answer', Decimal(42)) and ('answer', Fraction(42)) are treated as equivalent. The wrapped function is instrumented with a cache_p... - https://man.mtool.work/python/3.14/library/functools.html