per page, with , order by , clip by
Results of 1 - 9 of about 9 for iterators (0.007 sec.)
email.iterators: イテレータ 13355
email.iterators : イテレータ ソースコード: Lib/email/iterators.py Message.walk を使うと、メッセージオブジェクトのツリーを簡単に反復処理できます。 email.iterators モジュールは、メッセージオブジェクトのツリーに対する便利な高水準の反復処理を提 ... 供します。 email.iterators. body_line_iterator ( msg , decode = False ) このイテレータは msg 中のすべてのサブパートに含まれるペイロードをすべて順にた ... トとして読むのにいくぶん似ているかもしれません。 オプション引数 decode は、 Message.get_payload にそのまま渡されます。 email.iterators. typed_subpart_iterator ( msg , maintype = 'text' , subtype = None ) このイテレータは msg 中のすべてのサブパートをたどり、 ... 役に立つデバッグ用ツールとして追加されたもので、パッケージとして公式なサポートのあるインターフェイスでは ありません 。 email.iterators. _structure ( msg , fp = None , level = 0 , include_default = False ) そのメッセージオブジェクト構造の content-type をイン ...
https://man.mtool.work/python/3.14/library/email.iterators.html
itertools --- 効率的なループ用のイテレータ生成関数群 10785
itertools --- 効率的なループ用のイテレータ生成関数群 このモジュールは イテレータ を構築する部品を実装しています。プログラム言語 APL, Haskell, SML からアイデアを得ていますが、 Python に適した形に修正されています。 このモジュールは、高速でメモ ... class _tee : def __init__ ( self , iterable ): it = iter ( iterable ) if isinstance ( it , _tee ): self . iterator = it . iterator self . link = it . link else : self . iterator = it self . link = [ None , None ] def __iter__ ( self ): return self def __ ... そ次と等価です: def zip_longest ( * iterables , fillvalue = None ): # zip_longest('ABCD', 'xy', fillvalue='-') → Ax By C- D- iterators = list ( map ( iter , iterables )) num_active = len ( iterators ) if not num_active : return while True : values = [] for ... i , iterator in enumerate ( iterators ): try : value = next ( iterator ) except StopIteration : num_active -= 1 if not num_active : return iterators [ i ] = rep ...
https://man.mtool.work/python/3.14/library/itertools.html
collections --- コンテナデータ型 8574
collections --- コンテナデータ型 ソースコード: Lib/collections/__init__.py このモジュールは、汎用の Python 組み込みコンテナ dict , list , set , および tuple に代わる、特殊なコンテナデータ型を実装しています。 namedtuple() 名前付きフィールドを ... の場合は rotate() メソッドで末尾に戻せます。 def roundrobin ( * iterables ): "roundrobin('ABC', 'D', 'EF') --> A D E B F C" iterators = deque ( map ( iter , iterables )) while iterators : try : while True : yield next ( iterators [ 0 ]) iterators . rotate ... ( - 1 ) except StopIteration : # 使い果たされたイテレータを削除 iterators . popleft () rotate() メソッドを使うと deque のスライスや削除を実装できます。 例えば、 del d[n] を純粋な Python で実装する ...
https://man.mtool.work/python/3.14/library/collections.html
Pythonモジュール索引 8574
Pythonモジュール索引 _ | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | t | u | v | w | x | z _ __future__ Future statement definitions __main__ The environment where top-level code is run. Covers command-line i ... mail.header Representing non-ASCII headers email.headerregistry Automatic Parsing of headers based on the field name email.iterators Iterate over a message object tree. email.message The base class representing email messages. email.mime Build MIME messag ... ve objects. io Core tools for working with streams. ipaddress IPv4/IPv6 manipulation library. itertools Functions creating iterators for efficient looping. j json Encode and decode the JSON format. json.tool A command-line interface to validate and pretty ...
https://man.mtool.work/python/3.14/py-modindex.html
インターネット上のデータの操作 8448
インターネット上のデータの操作 この章ではインターネット上で一般的に利用されているデータ形式の操作をサポートするモジュール群について記述します。 email --- 電子メールと MIME 処理のためのパッケージ email.message : 電子メールメッセージの表現 em ... : 国際化されたヘッダー email.charset : 文字集合の表現 email.encoders : エンコーダー email.utils : 各種ユーティリティ email.iterators : イテレータ json --- JSON エンコーダーとデコーダー 基本的な使い方 エンコーダとデコーダ 例外 標準への準拠と互換性 文字エン ...
https://man.mtool.work/python/3.14/library/netdata.html
email --- 電子メールと MIME 処理のためのパッケージ 8070
email --- 電子メールと MIME 処理のためのパッケージ ソースコード: Lib/email/__init__.py email パッケージは電子メールメッセージを管理するライブラリです。 SMTP ( RFC 2821 )、NNTP などのサーバーへ電子メールを送信するためのものでは ありません 。 ... : 国際化されたヘッダー email.charset : 文字集合の表現 email.encoders : エンコーダー email.utils : 各種ユーティリティ email.iterators : イテレータ 参考 smtplib モジュール SMTP(簡易メール転送プロトコル)クライアント poplib モジュール POP (Post Office Proto ...
https://man.mtool.work/python/3.14/library/email.html
email.message: 電子メールメッセージの表現 7711
email.message : 電子メールメッセージの表現 ソースコード: Lib/email/message.py Added in version 3.6: [ 1 ] email パッケージの中心となるクラスは、 email.message モジュールからインポートする EmailMessage です。 これは email のオブジェクトモデル ... が False を返す場合も同様です。 デバッグ用の補助関数 _structure() を使うと、この例でその様子を確認できます。 >>> from email.iterators import _structure >>> for part in msg . walk (): ... print ( part . get_content_maintype () == 'multipart' , ... part . is ...
https://man.mtool.work/python/3.14/library/email.message.html
random --- 疑似乱数を生成する 7711
random --- 疑似乱数を生成する ソースコード: Lib/random.py このモジュールでは様々な分布をもつ擬似乱数生成器を実装しています。 整数用に、ある範囲からの一様な選択があります。 シーケンス用には、シーケンスからのランダムな要素の一様な選択、リスト ... たデータ解析法をカバーしています。 レシピ These recipes show how to efficiently make random selections from the combinatoric iterators in the itertools module: import random def random_product ( * iterables , repeat = 1 ): "次からランダムに選択: itertools.p ...
https://man.mtool.work/python/3.14/library/random.html
Python ドキュメントの目次 7585
Python ドキュメントの目次 What's New in Python What's new in Python 3.14 概要 -- リリースハイライト 新しい機能 PEP 649 と PEP 749 : アノテーションの遅延評価 PEP 734 : 複数インタープリタ機能が標準ライブラリに追加 PEP 750 : テンプレート文字列 ... : 国際化されたヘッダー email.charset : 文字集合の表現 email.encoders : エンコーダー email.utils : 各種ユーティリティ email.iterators : イテレータ json --- JSON エンコーダーとデコーダー 基本的な使い方 エンコーダとデコーダ 例外 標準への準拠と互換性 文字エン ...
https://man.mtool.work/python/3.14/contents.html
PREV 1 NEXT