per page, with , order by , clip by
Results of 1 - 10 of about 129 for Hello (0.007 sec.)
tokenize --- Python ソース用のトークナイザー — Python 3.14.8 ドキュメント 10940
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » tokenize --- Python ソース用のトークナイザー テーマ 自動 ライト ダーク | tokenize --- Python ソース用のトークナ ... okval )) return untokenize ( result ) . decode ( 'utf-8' ) コマンドラインからトークナイズする例。次のスクリプトが: def say_hello (): print ( "Hello, World!" ) say_hello () will be tokenized to the following output where the first column is the range o ... , the second column is the name of the token, and the final column is the value of the token (if any) $ python -m tokenize hello.py 0,0-0,0: ENCODING 'utf-8' 1,0-1,3: NAME 'def' 1,4-1,13: NAME 'say_hello' 1,13-1,14: OP '(' 1,14-1,15: OP ')' 1,15-1,16: ... OP ':' 1,16-1,17: NEWLINE '\n' 2,0-2,4: INDENT ' ' 2,4-2,9: NAME 'print' 2,9-2,10: OP '(' 2,10-2,25: STRING '"Hello, World!"' 2,25-2,26: OP ')' 2,26-2,27: NEWLINE '\n' 3,0-3,1: NL '\n' 4,0-4,0: DEDENT '' 4,0-4,9: NAME 'say_hello' 4,9-4,10 ...
https://man.mtool.work/python/3.14/library/tokenize.html
tokenize --- Python ソース用のトークナイザー — Python 3.14.8 ドキュメント 10940
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » tokenize --- Python ソース用のトークナイザー テーマ 自動 ライト ダーク | tokenize --- Python ソース用のトークナ ... okval )) return untokenize ( result ) . decode ( 'utf-8' ) コマンドラインからトークナイズする例。次のスクリプトが: def say_hello (): print ( "Hello, World!" ) say_hello () will be tokenized to the following output where the first column is the range o ... , the second column is the name of the token, and the final column is the value of the token (if any) $ python -m tokenize hello.py 0,0-0,0: ENCODING 'utf-8' 1,0-1,3: NAME 'def' 1,4-1,13: NAME 'say_hello' 1,13-1,14: OP '(' 1,14-1,15: OP ')' 1,15-1,16: ... OP ':' 1,16-1,17: NEWLINE '\n' 2,0-2,4: INDENT ' ' 2,4-2,9: NAME 'print' 2,9-2,10: OP '(' 2,10-2,25: STRING '"Hello, World!"' 2,25-2,26: OP ')' 2,26-2,27: NEWLINE '\n' 3,0-3,1: NL '\n' 4,0-4,0: DEDENT '' 4,0-4,9: NAME 'say_hello' 4,9-4,10 ...
https://man.mtool.work/python/3.14/library/tokenize.html
textwrap --- テキストの折り返しと詰め込み — Python 3.14.8 ドキュメント 10441
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » textwrap --- テキストの折り返しと詰め込み テーマ 自動 ライト ダーク | textwrap --- テキストの折り返しと詰め込 ... 場合、残りの文字数と placeholder との和が width 内に収まるように、末尾から単語が切り捨てられます: >>> textwrap . shorten ( "Hello world!" , width = 12 ) 'Hello world!' >>> textwrap . shorten ( "Hello world!" , width = 11 ) 'Hello [...]' >>> textwrap . ... shorten ( "Hello world" , width = 10 , placeholder = "..." ) 'Hello...' オプションのキーワード引数は、以下で説明する TextWrapper インスタン ... ようにするために使われます。 タブとスペースはともにホワイトスペースとして扱われますが、同じではないことに注意してください: " hello" という行と "\thello" は、同じ先頭の空白文字をもっていないとみなされます。 空白文字しか含まない行は入力の際に無視され、出力 ...
https://man.mtool.work/python/3.14/library/textwrap.html
textwrap --- テキストの折り返しと詰め込み — Python 3.14.8 ドキュメント 10039
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » textwrap --- テキストの折り返しと詰め込み テーマ 自動 ライト ダーク | textwrap --- テキストの折り返しと詰め込 ... 場合、残りの文字数と placeholder との和が width 内に収まるように、末尾から単語が切り捨てられます: >>> textwrap . shorten ( "Hello world!" , width = 12 ) 'Hello world!' >>> textwrap . shorten ( "Hello world!" , width = 11 ) 'Hello [...]' >>> textwrap . ... shorten ( "Hello world" , width = 10 , placeholder = "..." ) 'Hello...' オプションのキーワード引数は、以下で説明する TextWrapper インスタン ... ようにするために使われます。 タブとスペースはともにホワイトスペースとして扱われますが、同じではないことに注意してください: " hello" という行と "\thello" は、同じ先頭の空白文字をもっていないとみなされます。 空白文字しか含まない行は入力の際に無視され、出力 ...
https://man.mtool.work/python/3.14/library/textwrap.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8333
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... ading.Thread . A trivial example of a multiprocess program is from multiprocessing import Process def f ( name ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行された個々 ... parent process:' , os . getppid ()) print ( 'process id:' , os . getpid ()) def f ( name ): info ( 'function f' ) print ( 'hello' , name ) if __name__ == '__main__' : info ( 'main line' ) p = Process ( target = f , args = ( 'bob' ,)) p . start () p . ... 内で、関数 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 ( target = foo , args ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
multiprocessing --- プロセスベースの並列処理 — Python 3.14.8 ドキュメント 8333
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 並行実行 » multiprocessing --- プロセスベースの並列処理 テーマ 自動 ライト ダーク | multiprocessing --- プロセスベースの並列処理 ¶ ... ading.Thread . A trivial example of a multiprocess program is from multiprocessing import Process def f ( name ): print ( 'hello' , name ) if __name__ == '__main__' : p = Process ( target = f , args = ( 'bob' ,)) p . start () p . join () 実行された個々 ... parent process:' , os . getppid ()) print ( 'process id:' , os . getpid ()) def f ( name ): info ( 'function f' ) print ( 'hello' , name ) if __name__ == '__main__' : info ( 'main line' ) p = Process ( target = f , args = ( 'bob' ,)) p . start () p . ... 内で、関数 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 ( target = foo , args ...
https://man.mtool.work/python/3.14/library/multiprocessing.html
asyncio --- 非同期 I/O — Python 3.14.8 ドキュメント 8126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O テーマ 自動 ライト ダーク | asyncio --- 非同期 I/O ¶ Hello World! import ... asyncio async def main (): print ( 'Hello ...' ) await asyncio . sleep ( 1 ) print ( '... World!' ) asyncio . run ( main ()) asyncio は async/await 構文を使い 並行処 ... ", "copyright", "credits" or "license" for more information. >>> import asyncio >>> await asyncio . sleep ( 10 , result = 'hello' ) 'hello' This REPL provides limited compatibility with PYTHON_BASIC_REPL . It is recommended that the default REPL is us ... 連キーワード asyncio await async コード ライブラリ ネットワーク Python 非同期 run 並行 キュー 管理 introspection tools tasks Hello World import main print 前のトピックへ ネットワーク通信とプロセス間通信 次のトピックへ Runners This page Report a bug Impr ...
https://man.mtool.work/python/3.14/library/asyncio.html
asyncio --- 非同期 I/O — Python 3.14.8 ドキュメント 8126
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » asyncio --- 非同期 I/O テーマ 自動 ライト ダーク | asyncio --- 非同期 I/O ¶ Hello World! import ... asyncio async def main (): print ( 'Hello ...' ) await asyncio . sleep ( 1 ) print ( '... World!' ) asyncio . run ( main ()) asyncio は async/await 構文を使い 並行処 ... ", "copyright", "credits" or "license" for more information. >>> import asyncio >>> await asyncio . sleep ( 10 , result = 'hello' ) 'hello' This REPL provides limited compatibility with PYTHON_BASIC_REPL . It is recommended that the default REPL is us ... ります。 関連キーワード asyncio await async コード ライブラリ ネットワーク 非同期 並行 キュー 管理 introspection tools tasks Hello World import main print sleep 構文 分散 タスク フレームワーク 提供 同期 前のトピックへ ネットワーク通信とプロセス間通信 次 ...
https://man.mtool.work/python/3.14/library/asyncio.html
mmap --- メモリマップファイルのサポート — Python 3.14.8 ドキュメント 7931
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ネットワーク通信とプロセス間通信 » mmap --- メモリマップファイルのサポート テーマ 自動 ライト ダーク | mmap --- メモリマップファイル ... メータが追加されました。 この例は mmap の簡潔な使い方を示すものです: import mmap # write a simple example file with open ( "hello.txt" , "wb" ) as f : f . write ( b "Hello Python! \n " ) with open ( "hello.txt" , "r+b" ) as f : # memory-map the file, s ... e file mm = mmap . mmap ( f . fileno (), 0 ) # read content via standard file methods print ( mm . readline ()) # prints b"Hello Python!\n" # read content via slice notation print ( mm [: 5 ]) # prints b"Hello" # update content using slice notation; # ... :] = b " world! \n " # ... and read again using standard file methods mm . seek ( 0 ) print ( mm . readline ()) # prints b"Hello world!\n" # close the map mm . close () mmap は with 文の中でコンテキストマネージャとしても使えます: import mmap with mmap ...
https://man.mtool.work/python/3.14/library/mmap.html
socketserver --- ネットワークサーバーのフレームワーク — Python 3.14.8 ドキュメ... 7821
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネットプロトコルとサポート » socketserver --- ネットワークサーバーのフレームワーク テーマ 自動 ライト ダーク | socketserver ... ta ) print ( "Received:" , received ) この例の出力は次のようになります: サーバー: $ python TCPServer.py 127.0.0.1 wrote: b'hello world with TCP' 127.0.0.1 wrote: b'python is nice' クライアント: $ python TCPClient.py hello world with TCP Sent: hello wo ... rld with TCP Received: HELLO WORLD WITH TCP $ python TCPClient.py python is nice Sent: python is nice Received: PYTHON IS NICE socketserver.UDPServer の ... on = True server_thread . start () print ( "Server loop running in thread:" , server_thread . name ) client ( ip , port , "Hello World 1" ) client ( ip , port , "Hello World 2" ) client ( ip , port , "Hello World 3" ) server . shutdown () この例の出力 ...
https://man.mtool.work/python/3.14/library/socketserver.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT