per page, with , order by , clip by
Results of 1 - 10 of about 28 for infile (0.005 sec.)
11. Brief tour of the standard library --- part II — Python 3.14.8 ドキュメント 12568
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 11. Brief tour of the standard library --- part II テーマ 自動 ライト ダーク | 11. Brief tour of the standard library --- part II ¶ ツアー ... られるようにする方法を示しています: import threading , zipfile class AsyncZip ( threading . Thread ): def __init__ ( self , infile , outfile ): super () . __init__ () self . infile = infile self . outfile = outfile def run ( self ): with zipfile . ZipFi ... le ( self . outfile , 'w' , zipfile . ZIP_DEFLATED ) as f : f . write ( self . infile ) print ( 'Finished background zip of:' , self . infile ) background = AsyncZip ( 'mydata.txt' , 'myarchive.zip' ) backgro ... レッド アプリケーション logging print format Template プレースホルダ substitute background ユーザ filename バイト threading infile weakref primary pprint 複数 調整 目次 11. Brief tour of the standard library --- part II 11.1. Output formatting 11.2. 文字 ...
https://man.mtool.work/python/3.14/tutorial/stdlib2.html
11. Brief tour of the standard library --- part II — Python 3.14.8 ドキュメント 11175
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 11. Brief tour of the standard library --- part II テーマ 自動 ライト ダーク | 11. Brief tour of the standard library --- part II ¶ ツアー ... られるようにする方法を示しています: import threading , zipfile class AsyncZip ( threading . Thread ): def __init__ ( self , infile , outfile ): super () . __init__ () self . infile = infile self . outfile = outfile def run ( self ): with zipfile . ZipFi ... le ( self . outfile , 'w' , zipfile . ZIP_DEFLATED ) as f : f . write ( self . infile ) print ( 'Finished background zip of:' , self . infile ) background = AsyncZip ( 'mydata.txt' , 'myarchive.zip' ) backgro ...
https://man.mtool.work/python/3.14/tutorial/stdlib2.html
atexit --- 終了ハンドラー — Python 3.14.8 ドキュメント 10126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » atexit --- 終了ハンドラー テーマ 自動 ライト ダーク | atexit --- 終了ハンドラー ¶ The atexit module def ... モジュールを明示的に呼び出さなくてもカウンタが更新されるようにする方法を示しています。 try : with open ( 'counterfile' ) as infile : _count = int ( infile . read ()) except FileNotFoundError : _count = 0 def incrcounter ( n ): global _count _count = _co ...
https://man.mtool.work/python/3.14/library/atexit.html
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 10126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ile; rm -rf ~'] Added in version 3.3. The shlex module defines the following class: class shlex. shlex ( instream = None , infile = None , posix = False , punctuation_chars = False ) ¶ A shlex instance or subclass instance is a lexical analyzer object. ... nput will be taken from sys.stdin . The second optional argument is a filename string, which sets the initial value of the infile attribute. If the instream argument is omitted or equal to sys.stdin , this second argument defaults to "stdin". The posix ... ポップします。字句解析器がスタック上の入力ストリームの EOF に到達した際に利用するメソッドと同じです。 shlex. error_leader ( infile = None , lineno = None ) ¶ このメソッドはエラーメッセージの論述部分を Unix C コンパイラエラーラベルの形式で生成します; この ...
https://man.mtool.work/python/3.14/library/shlex.html
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 10126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ile; rm -rf ~'] Added in version 3.3. The shlex module defines the following class: class shlex. shlex ( instream = None , infile = None , posix = False , punctuation_chars = False ) ¶ A shlex instance or subclass instance is a lexical analyzer object. ... nput will be taken from sys.stdin . The second optional argument is a filename string, which sets the initial value of the infile attribute. If the instream argument is omitted or equal to sys.stdin , this second argument defaults to "stdin". The posix ... ポップします。字句解析器がスタック上の入力ストリームの EOF に到達した際に利用するメソッドと同じです。 shlex. error_leader ( infile = None , lineno = None ) ¶ このメソッドはエラーメッセージの論述部分を Unix C コンパイラエラーラベルの形式で生成します; この ...
https://man.mtool.work/python/3.14/library/shlex.html
atexit --- 終了ハンドラー — Python 3.14.8 ドキュメント 9766
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » atexit --- 終了ハンドラー テーマ 自動 ライト ダーク | atexit --- 終了ハンドラー ¶ The atexit module def ... モジュールを明示的に呼び出さなくてもカウンタが更新されるようにする方法を示しています。 try : with open ( 'counterfile' ) as infile : _count = int ( infile . read ()) except FileNotFoundError : _count = 0 def incrcounter ( n ): global _count _count = _co ...
https://man.mtool.work/python/3.14/library/atexit.html
json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 9078
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ ... hon -m json to validate and pretty-print JSON objects. The json.tool submodule implements this interface. オプション引数の infile と outfile が指定されない場合、それぞれ sys.stdin と sys.stdout が使用されます。 $ echo '{"json": "obj"}' | python -m json ... json . For backwards compatibility, invoking the CLI as python -m json.tool remains supported. コマンドラインオプション ¶ infile ¶ 検証を行う、あるいは整形出力を行う JSON ファイルを指定します: $ python -m json mp_films.json [ { "title": "And Now for S ... omething Completely Different", "year": 1971 }, { "title": "Monty Python and the Holy Grail", "year": 1975 } ] infile が指定されない場合、 sys.stdin から読み込みます。 outfile ¶ infile の出力を outfile に書き込みます。そうでない場合、 sys.s ...
https://man.mtool.work/python/3.14/library/json.html
json --- JSON エンコーダーとデコーダー — Python 3.14.8 ドキュメント 9078
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » json --- JSON エンコーダーとデコーダー テーマ 自動 ライト ダーク | json --- JSON エンコーダーとデコ ... hon -m json to validate and pretty-print JSON objects. The json.tool submodule implements this interface. オプション引数の infile と outfile が指定されない場合、それぞれ sys.stdin と sys.stdout が使用されます。 $ echo '{"json": "obj"}' | python -m json ... json . For backwards compatibility, invoking the CLI as python -m json.tool remains supported. コマンドラインオプション ¶ infile ¶ 検証を行う、あるいは整形出力を行う JSON ファイルを指定します: $ python -m json mp_films.json [ { "title": "And Now for S ... omething Completely Different", "year": 1971 }, { "title": "Monty Python and the Holy Grail", "year": 1975 } ] infile が指定されない場合、 sys.stdin から読み込みます。 outfile ¶ infile の出力を outfile に書き込みます。そうでない場合、 sys.s ...
https://man.mtool.work/python/3.14/library/json.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 8717
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ ... る利用例の1つは、入出力ファイルの指定オプションです: >>> parser = argparse . ArgumentParser () >>> parser . add_argument ( 'infile' , nargs = '?' ) >>> parser . add_argument ( 'outfile' , nargs = '?' ) >>> parser . parse_args ([ 'input.txt' , 'output.tx ... t' ]) Namespace(infile='input.txt', outfile='output.txt') >>> parser . parse_args ([ 'input.txt' ]) Namespace(infile='input.txt', outfile=None) > ... >> parser . parse_args ([]) Namespace(infile=None, outfile=None) '*' -- すべてのコマンドライン引数がリストに集められます。複数の位置引数が nargs='*' を持つことにあまり ...
https://man.mtool.work/python/3.14/library/argparse.html
trace --- Python 文実行のトレースと追跡 — Python 3.14.8 ドキュメント 8717
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » trace --- Python 文実行のトレースと追跡 テーマ 自動 ライト ダーク | trace --- Python 文実行のトレースと追 ... ース ¶ class trace. Trace ( count = 1 , trace = 1 , countfuncs = 0 , countcallers = 0 , ignoremods = () , ignoredirs = () , infile = None , outfile = None , timing = False ) ¶ 文 (statement) や式 (expression) の実行をトレースするオブジェクトを作成します ... は無視するモジュールやパッケージのリストです。 ignoredirs は無視するパッケージやモジュールを含むディレクトリのリストです。 infile は保存された集計 (count) 情報を読むファイルの名前です。 outfile は更新された集計 (count) 情報を書き出すファイルの名前です。 ...
https://man.mtool.work/python/3.14/library/trace.html
PREV 1 2 3 NEXT