Results of 1 - 10 of about 38 for option (0.008 sec.)
- optparse --- コマンドラインオプションのパーサー 16337
- optparse --- コマンドラインオプションのパーサー ソースコード: Lib/optparse.py 引数解析ライブラリの選択 標準ライブラリには、引数を解析するライブラリが三つあります。 getopt : C の手続き型の getopt API に忠実に対応するモジュールです。 optparse
...う。 一つ目は optparse 、二つ目は argparse を使っています。 import optparse if __name__ == '__main__' : parser = optparse . OptionParser () parser . add_option ( '-o' , '--output' ) parser . add_option ( '-v' , dest = 'verbose' , action = 'store_true' )...th argparse (also complaining that no value has been supplied for -o/--output , since -- is interpreted as terminating the option processing and treating all remaining values as positional arguments) -o=foo を指定すると、 optparse では output="=foo" に...かつ強力な、コマンドラインオプションの解析ライブラリです。 optparse では、より宣言的なスタイルでコマンドラインを解析します。 OptionParser のインスタンスを作り、オプションを登録してからコマンドラインを解析します。 optparse では、ユーザは従来の GNU/POSIX 構... - https://man.mtool.work/python/3.14/library/optparse.html
- configparser --- 設定ファイルのパーサー 10755
- configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡
...のセクション (または唯一のセクション) の名前は省略でき、 UNNAMED_SECTION 属性を使って値を取得できます。 >>> config = """ ... option = value ... ... [ Section 2 ] ... another = val ... """ >>> unnamed = configparser . ConfigParser ( allow_unnamed_section...= True ) >>> unnamed . read_string ( config ) >>> unnamed . get ( configparser . UNNAMED_SECTION , 'option' ) 'value' 値の補間 コア機能に加えて、 ConfigParser は補間(interpolation, 内挿とも)をサポートします。これは get() コールが...れるような、より高度な文法を実装した補間ハンドラの別の選択肢です。拡張された補間は、他のセクション中の値を示すのに ${section:option} と書けます。補間は複数のレベルに及べます、利便性のために、もし section: の部分が省略されると、現在のセクションがデフォルト... - https://man.mtool.work/python/3.14/library/configparser.html
- getopt --- C 形式のコマンドラインオプション解析 9481
- getopt --- C 形式のコマンドラインオプション解析 ソースコード: Lib/getopt.py 注釈 このモジュールは機能が完成したものとされています。 この API より宣言的で拡張しやすい代替手段として、 optparse モジュールがあります。 コマンドライン引数処理のさ
...r を送出します。 longopts が文字列の場合は、要素が 1 つのリストとして扱います。 返り値は2つの要素から成っています: 最初は (option, value) のタプルのリスト、2つ目はオプションリストを取り除いたあとに残ったプログラムの引数リストです ( args の末尾部分のスラ...タプルの最初の要素は、短形式の時はハイフン 1つで始まる文字列 (例: '-x' )、長形式の時はハイフン2つで始まる文字列 (例: '--long-option' ) となり、引数が2番目の要素になります。引数をとらない場合には空文字列が入ります。オプションは見つかった順に並んでいて、複...ongopts = [] ) This function works like getopt() , except that GNU style scanning mode is used by default. This means that option and non-option arguments may be intermixed. The getopt() function stops processing options as soon as a non-option argumen... - https://man.mtool.work/python/3.14/library/getopt.html
- tkinter.ttk --- Tk のテーマ付きウィジェット 8742
- tkinter.ttk --- Tk のテーマ付きウィジェット ソースコード: Lib/tkinter/ttk.py tkinter.ttk モジュールは、Tk 8.5 で導入されたテーマ付きウィジェット群を提供します。 外観が固定されている従来の tkinter ウィジェットと異なり、プラットフォームのネイ
...トのいくつかを tkinter.ttk のウィジェット ( Button 、 Checkbutton 、 Entry 、 Frame 、 Label 、 LabelFrame 、 Menubutton 、 OptionMenu 、 PanedWindow 、 Radiobutton 、 Scale 、 Scrollbar 、 Spinbox ) で自動的に置き換えます。 注釈 from tkinter.ttk import...ンと image オプションが両方指定されているときにテキストに対して画像をどう表示するかを指定します。指定する値については Label Options を参照してください。 underline テキスト中の下線を引く文字のインデックス (0 基点) を指定します。 Notebook.enable_traversal...現在ノートブックによって管理されているが隠れている場合、以前の位置に復元します。 利用可能なオプションのリストについては Tab Options を参照してください。 forget ( tab_id ) tab_id で指定されたタブを削除します。関連付けられていたウィンドウは切り離され、管理... - https://man.mtool.work/python/3.14/library/tkinter.ttk.html
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 8695
- argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密
...定できます。 >>> parser = argparse . ArgumentParser ( prog = 'myprogram' ) >>> parser . print_help () usage: myprogram [-h] options: -h, --help show this help message and exit プログラム名は、 sys.argv[0] 、 __main__ モジュールの属性、 prog= 引数のどれか...d_argument ( '--foo' , help = 'foo of the %(prog)s program' ) >>> parser . print_help () usage: myprogram [-h] [--foo FOO] options: -h, --help show this help message and exit --foo FOO foo of the myprogram program バージョン 3.14 で変更: デフォルトの p...指定すると、このメッセージを置き換えられます。 >>> parser = argparse . ArgumentParser ( prog = 'PROG' , usage = ' %(prog)s [options]' ) >>> parser . add_argument ( '--foo' , nargs = '?' , help = 'foo help' ) >>> parser . add_argument ( 'bar' , nargs = '... - https://man.mtool.work/python/3.14/library/argparse.html
- tkinter --- Tcl/Tk の Python インターフェース 8317
- tkinter --- Tcl/Tk の Python インターフェース ソースコード: Lib/tkinter/__init__.py tkinter パッケージ ("Tk インターフェース") は、 Tcl/Tk GUI ツールキットに対する標準の Python インターフェースです。 Tk と tkinter は macOS を含むほとんどの
...数に取る関数には、専用の man ページが用意されていることが多くあります (例えば grid )。 共通のオプションやメソッドの多くは、 options や ttk::widget の man ページに記載されています。 その他は個々のウィジェットクラスの man ページにあります。 Tkinter のメソ...に関する詳細な説明は、該当するウィジェットの Tk の man ページを参照してください。 man ページには、各ウィジェットの "STANDARD OPTIONS (標準オプション)" と "WIDGET SPECIFIC OPTIONS (ウィジェット固有のオプション)" がリストされていることに注意してください。前...ィジェットに共通のオプションのリストで、後者は特定のウィジェットに特有のオプションです。標準オプションの説明は man ページの options(3) にあります。 このドキュメントでは、標準オプションとウィジェット固有のオプションを区別していません。オプションによっては... - https://man.mtool.work/python/3.14/library/tkinter.html
- tkinter.font --- Tkinter フォントラッパー 8113
- tkinter.font --- Tkinter フォントラッパー ソースコード: Lib/tkinter/font.py tkinter.font モジュールは、名前付きフォントの作成と利用のために Font クラスを提供します。 フォントの太さと傾きには次の種類があります: tkinter.font. NORMAL tkinter.f
....font. ITALIC tkinter.font. ROMAN class tkinter.font. Font ( root = None , font = None , name = None , exists = False , ** options ) Font クラスは名前付きフォントを表します。 Font インスタンスには一意の名前が付き、ファミリー、サイズ、スタイルの設定で指...タに属し、同じ名前を持つ Font インスタンスである場合だけになりました。 引数: font - フォントを指定するタプル (family, size, options) name - フォントの一意の名前 exists - 真なら、 self は既存の名前付きフォントを指します。 追加のキーワードオプション ( fon...erline - フォントの下線 (0 - なし、1 - 下線あり) overstrike - フォントの取り消し線 (0 - なし、1 - 取り消し線あり) actual ( option = None , displayof = None ) フォントの実際の属性を返します。 プラットフォームの制限によって、要求した属性と異なることがあり... - https://man.mtool.work/python/3.14/library/tkinter.font.html
- 4. Windows で Python を使う 7956
- 4. Windows で Python を使う このドキュメントは、 Python を Microsoft Windows で使うときに知っておくべき、 Windows 固有の動作についての概要を伝えることを目的としています。 多くの Unix システムやサービスと異なり、Windows にはシステムでサポート
...を参照してください。 When you first install a runtime, you will likely be prompted to add a directory to your PATH . This is optional, if you prefer to use the py command, but is offered for those who prefer the full range of aliases (such as python3.14....>= 、 > を付けて範囲を制限できます。 A range of formats are supported, and can be passed as the --format=<FMT> or -f <FMT> option. Formats include table (a user-friendly table view), csv (comma-separated table), json (a single JSON blob), jsonl (one JS...auncher, the --list , --list-paths , -0 and -0p commands (for example, py -0p ) are retained. They do not allow additional options, and will produce legacy-formatted output. 4.1.5. ランタイムのインストール $> py install [-s=|--source=<URL>] [-f|--force... - https://man.mtool.work/python/3.14/using/windows.html
- mmap --- メモリマップファイルのサポート 7799
- mmap --- メモリマップファイルのサポート 利用可能な環境 : not WASI. このモジュールは WebAssembly では動作しないか、利用不可です。詳しくは、 WebAssembly プラットフォーム を見てください。 Memory-mapped file objects behave like both bytearray a
...ゼロ以外の値を、エラー時にゼロを返していました。 Unix では、成功時にゼロを返し、エラー時に例外を送出していました。 madvise ( option [ , start [ , length ] ] ) start から始まる length バイトのメモリ領域について、カーネルに助言 option を送ります。 option は...to be written, and PROT_EXEC allows pages to be executed. Values can be combined using the bitwise OR operator. Not every option is present on every system. 利用可能な環境 : Unix. MADV_* constants mmap. MADV_NORMAL mmap. MADV_RANDOM mmap. MADV_SEQUENT... - https://man.mtool.work/python/3.14/library/mmap.html
- Pythonモジュール索引 7799
- Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i
...:pep:`3119`. aifc 非推奨: Removed in 3.13. annotationlib Functionality for introspecting annotations argparse Command-line option and argument parsing library. array Space efficient arrays of uniformly typed numeric values. ast Abstract Syntax Tree cla...ions on callable objects. g gc Interface to the cycle-detecting garbage collector. getopt Portable parser for command line options; support both short and long option names. getpass Portable reading of passwords and retrieval of the userid. gettext Mul...asses (Complex, Real, Integral, etc.). o operator Functions corresponding to the standard operators. optparse Command-line option parsing library. os Miscellaneous operating system interfaces. os.path Operations on pathnames. ossaudiodev 非推奨: Remove... - https://man.mtool.work/python/3.14/py-modindex.html