Results of 1 - 10 of about 34 for demo (0.010 sec.)
- Logging クックブック — Python 3.14.8 ドキュメント 13309
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Logging クックブック テーマ 自動 ライト ダーク | Logging クックブック ¶ Author : Vinay Sajip <vinay_sajip at red-dove dot com> このページは、過去に
...njects contextual information into the log. Rather than use actual contextual information, we just use random data in this demo. """ USERS = [ 'jim' , 'fred' , 'sheila' ] IPS = [ '123.231.231.123' , '127.0.0.1' , '192.168.0.1' ] def filter ( self , r...se imports in your own code import logging import logging.handlers import multiprocessing # Next two import lines for this demo only from random import choice , random import time # # Because you'll want to define the logging configurations for liste...roblem:' , file = sys . stderr ) traceback . print_exc ( file = sys . stderr ) # Arrays used for random selections in this demo LEVELS = [ logging . DEBUG , logging . INFO , logging . WARNING , logging . ERROR , logging . CRITICAL ] LOGGERS = [ 'a.b.... - https://man.mtool.work/python/3.14/howto/logging-cookbook.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 10577
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...arguments. These arguments are stored in the sys module's argv attribute as a list. For instance, let's take the following demo.py file: # File demo.py import sys print ( sys . argv ) 以下は、コマンドライン上で python demo.py one two three と実行した...時の出力です: [ 'demo.py' , 'one' , 'two' , 'three' ] The argparse module provides a more sophisticated mechanism to process command-line argume...サポート average ツール パッケージ server 操作 lines args math statistics zlib timeit self docstring shutil glob arguments demo print parser smtplib 目次 10. Brief tour of the standard library 10.1. Operating system interface 10.2. File wildcards 10.... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- 6. 式 (expression) — Python 3.14.8 ドキュメント 10129
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...can define a custom object that implements __getitem__() and prints out the value of the subscript: >>> class SubscriptionDemo : ... def __getitem__ ( self , key ): ... print ( f 'subscripted with: { key !r} ' ) ... >>> demo = SubscriptionDemo () >>...> demo [ 1 ] subscripted with: 1 >>> demo [ 'a' * 3 ] subscripted with: 'aaa' See __getitem__() documentation for how built-in ty...ct is then passed to the __getitem__() or __class_getitem__() special method , as above. # continuing with the SubscriptionDemo instance defined above: >>> demo [ 2 : 3 ] subscripted with : slice ( 2 , 3 , None ) >>> demo [:: 'spam' ] subscripted wit... - https://man.mtool.work/python/3.14/reference/expressions.html
- 6. 式 (expression) — Python 3.14.8 ドキュメント 10129
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...can define a custom object that implements __getitem__() and prints out the value of the subscript: >>> class SubscriptionDemo : ... def __getitem__ ( self , key ): ... print ( f 'subscripted with: { key !r} ' ) ... >>> demo = SubscriptionDemo () >>...> demo [ 1 ] subscripted with: 1 >>> demo [ 'a' * 3 ] subscripted with: 'aaa' See __getitem__() documentation for how built-in ty...ct is then passed to the __getitem__() or __class_getitem__() special method , as above. # continuing with the SubscriptionDemo instance defined above: >>> demo [ 2 : 3 ] subscripted with : slice ( 2 , 3 , None ) >>> demo [:: 'spam' ] subscripted wit... - https://man.mtool.work/python/3.14/reference/expressions.html
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 9906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...ame of the shared memory block. size ¶ Read-only access to size in bytes of the shared memory block. The following example demonstrates low-level use of SharedMemory instances: >>> from multiprocessing import shared_memory >>> shm_a = shared_memory ....ance >>> shm_a . close () >>> shm_a . unlink () # Call unlink only once to release the shared memory The following example demonstrates a practical use of the SharedMemory class with NumPy arrays , accessing the same numpy.ndarray from two distinct P...¶ Create and return a new ShareableList object, initialized by the values from the input sequence . The following example demonstrates the basic mechanisms of a SharedMemoryManager : >>> from multiprocessing.managers import SharedMemoryManager >>> s... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ — Py... 9906
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing.shared_memory --- プロセス間で直接アクセス可能な共有メモリ テーマ 自動 ライト ダーク | multiprocessing.s
...ame of the shared memory block. size ¶ Read-only access to size in bytes of the shared memory block. The following example demonstrates low-level use of SharedMemory instances: >>> from multiprocessing import shared_memory >>> shm_a = shared_memory ....ance >>> shm_a . close () >>> shm_a . unlink () # Call unlink only once to release the shared memory The following example demonstrates a practical use of the SharedMemory class with NumPy arrays , accessing the same numpy.ndarray from two distinct P...¶ Create and return a new ShareableList object, initialized by the values from the input sequence . The following example demonstrates the basic mechanisms of a SharedMemoryManager : >>> from multiprocessing.managers import SharedMemoryManager >>> s... - https://man.mtool.work/python/3.14/library/multiprocessing.shared_memory.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 9682
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...arguments. These arguments are stored in the sys module's argv attribute as a list. For instance, let's take the following demo.py file: # File demo.py import sys print ( sys . argv ) 以下は、コマンドライン上で python demo.py one two three と実行した...時の出力です: [ 'demo.py' , 'one' , 'two' , 'three' ] The argparse module provides a more sophisticated mechanism to process command-line argume... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- wsgiref --- WSGI ユーティリティとリファレンス実装 — Python 3.14.8 ドキュメント 8995
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » wsgiref --- WSGI ユーティリティとリファレンス実装 テーマ 自動 ライト ダーク | wsgiref --- WSGI
...utilities for manipulating WSGI environment variables and response headers, base classes for implementing WSGI servers, a demo HTTP server that serves WSGI applications, types for static type checking, and a validation tool that checks WSGI servers...れは実際の WSGI サーバやアプリケーションで使うべきではありません。なぜならこのデータは偽物なのです! Example usage (see also demo_app() for another example): from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server...3 で定義されるところの WSGI アプリケーションでなければいけません。 使用例: from wsgiref.simple_server import make_server , demo_app with make_server ( '' , 8000 , demo_app ) as httpd : print ( "Serving HTTP on port 8000..." ) # Respond to requests un... - https://man.mtool.work/python/3.14/library/wsgiref.html
- wsgiref --- WSGI ユーティリティとリファレンス実装 — Python 3.14.8 ドキュメント 8995
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » wsgiref --- WSGI ユーティリティとリファレンス実装 テーマ 自動 ライト ダーク | wsgiref --- WSGI
...utilities for manipulating WSGI environment variables and response headers, base classes for implementing WSGI servers, a demo HTTP server that serves WSGI applications, types for static type checking, and a validation tool that checks WSGI servers...れは実際の WSGI サーバやアプリケーションで使うべきではありません。なぜならこのデータは偽物なのです! Example usage (see also demo_app() for another example): from wsgiref.util import setup_testing_defaults from wsgiref.simple_server import make_server...3 で定義されるところの WSGI アプリケーションでなければいけません。 使用例: from wsgiref.simple_server import make_server , demo_app with make_server ( '' , 8000 , demo_app ) as httpd : print ( "Serving HTTP on port 8000..." ) # Respond to requests un... - https://man.mtool.work/python/3.14/library/wsgiref.html
- xml.dom.minidom --- 最小限の DOM の実装 — Python 3.14.8 ドキュメント 8771
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.dom.minidom --- 最小限の DOM の実装 テーマ 自動 ライト ダーク | xml.dom.minidom --- 最小限の DOM の実
...。特にこの例に関しては、DOM の柔軟性をあまり活用してはいません。 import xml.dom.minidom document = """ \ <slideshow> <title>Demo slideshow</title> <slide><title>Slide title</title> <point>This is a demo</point> <point>Of a program for processing slide...s</point> </slide> <slide><title>Another demo slide</title> <point>It is important</point> <point>To have more than</point> <point>one slide</point> </slide> </slidesho... - https://man.mtool.work/python/3.14/library/xml.dom.minidom.html