Results of 1 - 10 of about 569 for Example (0.008 sec.)
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 9015
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...ュメントは「読めるテスト」にも「実行できるドキュメント」にもなります。 以下に完全かつ短い実行例を示します: """ This is the "example" module. The example module supplies one function, factorial(). For example, >>> factorial(5) 120 """ def factorial ( n ):...n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $ There's no output! That's normal, and it...means all the examples worked. Pass -v to the script, and doctest prints a detailed log of what it's trying, and prints a summary at the end: $... - https://man.mtool.work/python/3.14/library/doctest.html
- doctest --- 対話型の Python の例をテストする — Python 3.14.8 ドキュメント 9015
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 開発ツール » doctest --- 対話型の Python の例をテストする テーマ 自動 ライト ダーク | doctest --- 対話型の Python の例をテストする
...ュメントは「読めるテスト」にも「実行できるドキュメント」にもなります。 以下に完全かつ短い実行例を示します: """ This is the "example" module. The example module supplies one function, factorial(). For example, >>> factorial(5) 120 """ def factorial ( n ):...n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . testmod () If you run example.py directly from the command line, doctest works its magic: $ python example.py $ There's no output! That's normal, and it...means all the examples worked. Pass -v to the script, and doctest prints a detailed log of what it's trying, and prints a summary at the end: $... - https://man.mtool.work/python/3.14/library/doctest.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 6856
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...ァイルを例に考えましょう: [DEFAULT] ServerAliveInterval = 45 Compression = yes CompressionLevel = 9 ForwardX11 = yes [forge.example] User = hg [topsecret.server.example] Port = 50022 ForwardX11 = no The structure of INI files is described in the followin...FAULT' ] = { 'ServerAliveInterval' : '45' , ... 'Compression' : 'yes' , ... 'CompressionLevel' : '9' } >>> config [ 'forge.example' ] = {} >>> config [ 'forge.example' ][ 'User' ] = 'hg' >>> config [ 'topsecret.server.example' ] = {} >>> topsecret = con...fig [ 'topsecret.server.example' ] >>> topsecret [ 'Port' ] = '50022' # mutates the parser >>> topsecret [ 'ForwardX11' ] = 'no' # same here >>> config [... - https://man.mtool.work/python/3.14/library/configparser.html
- configparser --- 設定ファイルのパーサー — Python 3.14.8 ドキュメント 6795
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルフォーマット » configparser --- 設定ファイルのパーサー テーマ 自動 ライト ダーク | configparser --- 設定ファイルのパーサー
...ァイルを例に考えましょう: [DEFAULT] ServerAliveInterval = 45 Compression = yes CompressionLevel = 9 ForwardX11 = yes [forge.example] User = hg [topsecret.server.example] Port = 50022 ForwardX11 = no The structure of INI files is described in the followin...FAULT' ] = { 'ServerAliveInterval' : '45' , ... 'Compression' : 'yes' , ... 'CompressionLevel' : '9' } >>> config [ 'forge.example' ] = {} >>> config [ 'forge.example' ][ 'User' ] = 'hg' >>> config [ 'topsecret.server.example' ] = {} >>> topsecret = con...fig [ 'topsecret.server.example' ] >>> topsecret [ 'Port' ] = '50022' # mutates the parser >>> topsecret [ 'ForwardX11' ] = 'no' # same here >>> config [... - https://man.mtool.work/python/3.14/library/configparser.html
- unicodedata --- Unicode データベース — Python 3.14.8 ドキュメント 6409
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » unicodedata --- Unicode データベース テーマ 自動 ライト ダーク | unicodedata --- Unicode データベース ¶ This
...me. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. For example: >>> unicodedata . lookup ( 'LEFT CURLY BRACKET' ) '{' The characters returned by this function are the same as those prod...uced by \N escape sequence in string literals. For example: >>> unicodedata . lookup ( 'MIDDLE DOT' ) == ' \N{MIDDLE DOT} ' True バージョン 3.3 で変更: name aliases [ 1 ] と named s...to the character chr as a string. If no name is defined, default is returned, or, if not given, ValueError is raised. For example: >>> unicodedata . name ( '½' ) 'VULGAR FRACTION ONE HALF' >>> unicodedata . name ( ' \uFFFF ' , 'fallback' ) 'fallback' u... - https://man.mtool.work/python/3.14/library/unicodedata.html
- unicodedata --- Unicode データベース — Python 3.14.8 ドキュメント 6356
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » unicodedata --- Unicode データベース テーマ 自動 ライト ダーク | unicodedata --- Unicode データベース ¶ This
...me. If a character with the given name is found, return the corresponding character. If not found, KeyError is raised. For example: >>> unicodedata . lookup ( 'LEFT CURLY BRACKET' ) '{' The characters returned by this function are the same as those prod...uced by \N escape sequence in string literals. For example: >>> unicodedata . lookup ( 'MIDDLE DOT' ) == ' \N{MIDDLE DOT} ' True バージョン 3.3 で変更: name aliases [ 1 ] と named s...to the character chr as a string. If no name is defined, default is returned, or, if not given, ValueError is raised. For example: >>> unicodedata . name ( '½' ) 'VULGAR FRACTION ONE HALF' >>> unicodedata . name ( ' \uFFFF ' , 'fallback' ) 'fallback' u... - https://man.mtool.work/python/3.14/library/unicodedata.html
- Command-line introspection tools — Python 3.14.8 ドキュメント 6242
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li
...ntrospection Programmatic APIs for inspecting the async call graph of a task or future in the current process. The command examples below use this program, which creates a task hierarchy suitable for inspection and prints its process ID: example.py ¶ im...Aqua Regia" ]), name = "TMBTE" , ) asyncio . run ( main ()) Run the program in one terminal and leave it running: $ python example.py PID: 12345 Then pass the printed process ID to the commands from another terminal. Thread IDs, task IDs, file paths, an...is blocked and where in its coroutine stack execution has paused: $ python -m asyncio pstree 12345 └── (T) Task-1 └── main example.py:12 └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75 └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124 ├── (T) Sund... - https://man.mtool.work/python/3.14/library/asyncio-tools.html
- http.cookiejar --- HTTP クライアント用の Cookie 処理 — Python 3.14.8 ドキュメン... 6242
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.cookiejar --- HTTP クライアント用の Cookie 処理 テーマ 自動 ライト ダーク | http.cookieja
...ie-attributes introduced with RFC 2965. 注釈 The various named parameters found in Set-Cookie and Set-Cookie2 headers (for example, domain and expires ) are conventionally referred to as attributes . To distinguish them from Python attributes, the docum..._return_ok() は request ドメインだけではなく、すべての cookie ドメインに対して呼ばれます。たとえば request ドメインが "www.example.com" だった場合、この関数は ".example.com" および "www.example.com" の両方に対して呼ばれることがあります。同じことは path_...ット (.) で始まっていないものは、正確にそれと一致するドメインのクッキーにしか適用されません。たとえば拒否リスト中のエントリ "example.com" は、 "example.com" にはマッチしますが、 "www.example.com" にはマッチしません。一方ドット (.) で始まっているドメインは... - https://man.mtool.work/python/3.14/library/http.cookiejar.html
- Command-line introspection tools — Python 3.14.8 ドキュメント 6242
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O » Command-line introspection tools テーマ 自動 ライト ダーク | Command-li
...ntrospection Programmatic APIs for inspecting the async call graph of a task or future in the current process. The command examples below use this program, which creates a task hierarchy suitable for inspection and prints its process ID: example.py ¶ im...Aqua Regia" ]), name = "TMBTE" , ) asyncio . run ( main ()) Run the program in one terminal and leave it running: $ python example.py PID: 12345 Then pass the printed process ID to the commands from another terminal. Thread IDs, task IDs, file paths, an...is blocked and where in its coroutine stack execution has paused: $ python -m asyncio pstree 12345 └── (T) Task-1 └── main example.py:12 └── TaskGroup.__aexit__ Lib/asyncio/taskgroups.py:75 └── TaskGroup._aexit Lib/asyncio/taskgroups.py:124 ├── (T) Sund... - https://man.mtool.work/python/3.14/library/asyncio-tools.html
- http.cookiejar --- HTTP クライアント用の Cookie 処理 — Python 3.14.8 ドキュメン... 6242
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » http.cookiejar --- HTTP クライアント用の Cookie 処理 テーマ 自動 ライト ダーク | http.cookieja
...ie-attributes introduced with RFC 2965. 注釈 The various named parameters found in Set-Cookie and Set-Cookie2 headers (for example, domain and expires ) are conventionally referred to as attributes . To distinguish them from Python attributes, the docum..._return_ok() は request ドメインだけではなく、すべての cookie ドメインに対して呼ばれます。たとえば request ドメインが "www.example.com" だった場合、この関数は ".example.com" および "www.example.com" の両方に対して呼ばれることがあります。同じことは path_...ット (.) で始まっていないものは、正確にそれと一致するドメインのクッキーにしか適用されません。たとえば拒否リスト中のエントリ "example.com" は、 "example.com" にはマッチしますが、 "www.example.com" にはマッチしません。一方ドット (.) で始まっているドメインは... - https://man.mtool.work/python/3.14/library/http.cookiejar.html