per page, with , order by , clip by
Results of 1 - 10 of about 110 for Q (0.009 sec.)
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 11873
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... can handle many connections concurrently, but the Python code that runs to handle each one still executes serially. Once requests involve a non-trivial amount of per-request computation, that handling becomes the bottleneck, and a single core can ... p up. Combining asyncio with threads is most useful here: by running an event loop per thread, the handling of different requests can run in parallel across multiple CPU cores. It is also useful when you need to run blocking or CPU-bound code from ... asyncio) thread needs to hand work to an asyncio event loop running in another thread, use a thread-safe primitive such as queue.Queue rather than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import t ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
asyncio and free-threaded Python — Python 3.14.8 ドキュメント 11873
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » asyncio and free-threaded Python テーマ 自動 ライト ダーク | asyncio an ... can handle many connections concurrently, but the Python code that runs to handle each one still executes serially. Once requests involve a non-trivial amount of per-request computation, that handling becomes the bottleneck, and a single core can ... p up. Combining asyncio with threads is most useful here: by running an event loop per thread, the handling of different requests can run in parallel across multiple CPU cores. It is also useful when you need to run blocking or CPU-bound code from ... asyncio) thread needs to hand work to an asyncio event loop running in another thread, use a thread-safe primitive such as queue.Queue rather than asyncio.Queue , which is only safe within a single event loop.: import asyncio import queue import t ...
https://man.mtool.work/python/3.14/library/asyncio-threading.html
Argparse チュートリアル — Python 3.14.8 ドキュメント 9613
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... es two other libraries directly related to command-line parameter processing: the lower level optparse module (which may require more code to configure for a given application, but also allows an application to request behaviors that argparse does ... n't support), and the very low level getopt (which specifically serves as an equivalent to the getopt() family of functions available to C programmers). While neither of those modules is covered directl ... ) このコードを実行してみましょう: $ python prog.py usage: prog.py [-h] echo prog.py: error: the following arguments are required: echo $ python prog.py --help usage: prog.py [-h] echo positional arguments: echo options: -h, --help show this help ...
https://man.mtool.work/python/3.14/howto/argparse.html
Argparse チュートリアル — Python 3.14.8 ドキュメント 9613
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー » Argparse チュー ... es two other libraries directly related to command-line parameter processing: the lower level optparse module (which may require more code to configure for a given application, but also allows an application to request behaviors that argparse does ... n't support), and the very low level getopt (which specifically serves as an equivalent to the getopt() family of functions available to C programmers). While neither of those modules is covered directl ... ) このコードを実行してみましょう: $ python prog.py usage: prog.py [-h] echo prog.py: error: the following arguments are required: echo $ python prog.py --help usage: prog.py [-h] echo positional arguments: echo options: -h, --help show this help ...
https://man.mtool.work/python/3.14/howto/argparse.html
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 9346
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... a module that closely mirrors the procedural C getopt API. optparse : a declarative replacement for getopt that provides equivalent functionality without requiring each application to implement its own procedural option parsing logic. argparse : ... tparse and doesn't want to risk the subtle behavioural changes that may arise when migrating to argparse the application requires additional control over the way options and positional parameters are interleaved on the command line (including the ... ability to disable the interleaving feature completely) the application requires additional control over the incremental parsing of command line elements (while argparse does support this, the exact ...
https://man.mtool.work/python/3.14/library/optparse.html
optparse --- Parser for command line options — Python 3.14.8 ドキュメント 9346
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » optparse --- Parser for command line options テーマ 自動 ライト ダーク | optparse --- Pa ... a module that closely mirrors the procedural C getopt API. optparse : a declarative replacement for getopt that provides equivalent functionality without requiring each application to implement its own procedural option parsing logic. argparse : ... tparse and doesn't want to risk the subtle behavioural changes that may arise when migrating to argparse the application requires additional control over the way options and positional parameters are interleaved on the command line (including the ... ability to disable the interleaving feature completely) the application requires additional control over the incremental parsing of command line elements (while argparse does support this, the exact ...
https://man.mtool.work/python/3.14/library/optparse.html
math --- 数学関数 — Python 3.14.8 ドキュメント 8953
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... oose k items from n items without repetition and without order factorial(n) n の階乗 gcd(*integers) 整数引数の最大公約数 isqrt(n) Integer square root of a nonnegative integer n lcm(*integers) Least common multiple of the integer arguments perm(n, ... s without repetition and with order Floating point arithmetic ceil(x) Ceiling of x , the smallest integer greater than or equal to x fabs(x) x の絶対値 floor(x) Floor of x , the largest integer less than or equal to x fma(x, y, z) Fused multiply-a ... g1p(x) Natural logarithm of 1+x (base e ) log2(x) 2を底とする x の対数 log10(x) 10を底とする x の対数 pow(x, y) x の y 乗 sqrt(x) x の平方根 Summation and product functions dist(p, q) Euclidean distance between two points p and q given as an itera ...
https://man.mtool.work/python/3.14/library/math.html
math --- 数学関数 — Python 3.14.8 ドキュメント 8953
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 数値と数学モジュール » math --- 数学関数 テーマ 自動 ライト ダーク | math --- 数学関数 ¶ This module provides access to common math ... oose k items from n items without repetition and without order factorial(n) n の階乗 gcd(*integers) 整数引数の最大公約数 isqrt(n) Integer square root of a nonnegative integer n lcm(*integers) Least common multiple of the integer arguments perm(n, ... s without repetition and with order Floating point arithmetic ceil(x) Ceiling of x , the smallest integer greater than or equal to x fabs(x) x の絶対値 floor(x) Floor of x , the largest integer less than or equal to x fma(x, y, z) Fused multiply-a ... g1p(x) Natural logarithm of 1+x (base e ) log2(x) 2を底とする x の対数 log10(x) 10を底とする x の対数 pow(x, y) x の y 乗 sqrt(x) x の平方根 Summation and product functions dist(p, q) Euclidean distance between two points p and q given as an itera ...
https://man.mtool.work/python/3.14/library/math.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8686
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... vailable on POSIX systems. バージョン 3.14 で変更: This is no longer the default start method on any platform. Code that requires fork must explicitly specify that via get_context() or set_start_method() . バージョン 3.12 で変更: If Python is able ... server process is spawned. From then on, whenever a new process is needed, the parent process connects to the server and requests that it fork a new process. The fork server process is single threaded unless system libraries or preloaded imports s ... '__main__' 節内で、関数 set_start_method() によって指定します。以下に例を示します: import multiprocessing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : mp . set_start_method ( 'spawn' ) q = mp . Queue () p = mp . Process ( ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8686
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... vailable on POSIX systems. バージョン 3.14 で変更: This is no longer the default start method on any platform. Code that requires fork must explicitly specify that via get_context() or set_start_method() . バージョン 3.12 で変更: If Python is able ... server process is spawned. From then on, whenever a new process is needed, the parent process connects to the server and requests that it fork a new process. The fork server process is single threaded unless system libraries or preloaded imports s ... '__main__' 節内で、関数 set_start_method() によって指定します。以下に例を示します: import multiprocessing as mp def foo ( q ): q . put ( 'hello' ) if __name__ == '__main__' : mp . set_start_method ( 'spawn' ) q = mp . Queue () p = mp . Process ( ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT