Results of 1 - 10 of about 23 for sets (0.007 sec.)
- What's New in Python 2.3 14343
- What's New in Python 2.3 著者 : A.M. Kuchling この文書は Python 2.3 の新機能について解説します。Python 2.3 は 2003 年 7 月 29 日にリリースされました。 Python 2.3 の主要なテーマは、2.2 で追加されたいくつかの機能を磨くこと、言語中核に小さいな
...れています。ので、集合型について知りたければここよりも 2.4 のビルトインの方から読んだ方が良いです。---) --- 新しいモジュール sets には、集合データ型の実装が含まれています。 Set クラスは mutable の集合のためのクラスで、メンバの追加と削除が出来ます。 Imm...来ます。集合型は辞書の上に構築されているので、集合内の要素はハッシュ可能でなければなりません。 単純な使用例です: >>> import sets >>> S = sets . Set ([ 1 , 2 , 3 ]) >>> S Set([1, 2, 3]) >>> 1 in S True >>> 0 in S False >>> S . add ( 5 ) >>> S . remove...ルな集合には、これらの処理で集合自体を更新する union_update() メソッドと intersection_update() メソッドもあります。 >>> S1 = sets . Set ([ 1 , 2 , 3 ]) >>> S2 = sets . Set ([ 4 , 5 , 6 ]) >>> S1 . union ( S2 ) Set([1, 2, 3, 4, 5, 6]) >>> S1 | S2 # 別の... - https://man.mtool.work/python/3.14/whatsnew/2.3.html
- xml.dom.minidom --- 最小限の DOM の実装 10992
- xml.dom.minidom --- 最小限の DOM の実装 ソースコード: Lib/xml/dom/minidom.py xml.dom.minidom は Document Object Model インターフェースの最小限の実装で、他の言語の実装と同様の API を備えています。 完全な DOM より単純で、大幅に小さい実装を目指
...としてもです。 https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl と https://www.iana.org/assignments/character-sets/character-sets.xhtml を参照してください。 他のマニュアルの関連ページ PHP unlink() Linux JM unlink(1) Linux JM unlink(2) Li... - https://man.mtool.work/python/3.14/library/xml.dom.minidom.html
- 超高水準レイヤ 10322
- 超高水準レイヤ この章の関数を使うとファイルまたはバッファにある Python ソースコードを実行できますが、より詳細なやり取りをインタプリタとすることはできないでしょう。 これらの関数の一部は、文法の開始記号を引数に取ります。 利用できる開始記号は
...ad a line of input from the provided standard input file, returning the resulting string. For example, the readline module sets this hook to provide line-editing and tab-completion features. The function is called without an attached thread state . I...f this pointer is NULL , PyOS_Readline() sets it to the default implementation, PyOS_Readline() , before reading input. The returned string must be null-terminated and... - https://man.mtool.work/python/3.14/c-api/veryhigh.html
- 拡張モジュールの定義 9651
- 拡張モジュールの定義 A C extension for CPython is a shared library (for example, a .so file on Linux, .pyd DLL on Windows), which is loadable into the Python process (for example, it is compiled with compatible compiler settings), and which
...fault, Python itself creates the module object -- that is, it does the equivalent of object.__new__() for classes. It also sets initial attributes like __package__ and __loader__ . Afterwards, the module object is initialized using extension-specific... - https://man.mtool.work/python/3.14/c-api/extension-modules.html
- xml.parsers.expat --- Expat を使用した高速な XML 解析 8981
- xml.parsers.expat --- Expat を使用した高速な XML 解析 注釈 信頼できないデータや、認証されていないデータを解析する場合は、 XML のセキュリティ を参照してください。 xml.parsers.expat モジュールは、妥当性検証を行わない XML パーサー Expat の Pyt
...はありません。 https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl と https://www.iana.org/assignments/character-sets/character-sets.xhtml を参照してください。 他のマニュアルの関連ページ PHP xml.installation PHP xml.setup Linux JM factor(6)... - https://man.mtool.work/python/3.14/library/pyexpat.html
- wave --- WAV ファイルの読み書き 8981
- wave --- WAV ファイルの読み書き ソースコード: Lib/wave.py The wave module provides a convenient interface to the Waveform Audio "WAVE" (or "WAV") file format. Only uncompressed PCM encoded wave files are supported. バージョン 3.12 で変更: 拡
...と一致しなければ、例外を送出します。 setnchannels ( n ) チャンネル数を設定します。 getnchannels ( ) チャンネル数を返します。 setsampwidth ( n ) サンプルサイズを n バイトに設定します。 getsampwidth ( ) サンプルサイズをバイト単位で返します。 setframerate...tuple should be (nchannels, sampwidth, framerate, nframes, comptype, compname) , with values valid for the set*() methods. Sets all parameters. getparams ( ) 現在の出力パラメータを格納した namedtuple() の (nchannels, sampwidth, framerate, nframes, co... - https://man.mtool.work/python/3.14/library/wave.html
- Pythonモジュール索引 8981
- 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
...n docstrings. e email Package supporting the parsing, manipulating, and generating email messages. email.charset Character Sets email.contentmanager Storing and Retrieving Content from MIME Parts email.encoders Encoders for email message payloads. em... - https://man.mtool.work/python/3.14/py-modindex.html
- 用語集 8311
- 用語集 >>> 対話型 シェルにおけるデフォルトの Python プロンプトです。インタープリターで対話的に実行されるコード例でよく見られます。 ... 次のものが考えられます: 対話型 ( interactive ) シェルにおいて、インデントされたコードブロック、対応する左
...。 results = {n: n ** 2 for n in range(10)} とすると、キー n を値 n ** 2 に対応付ける辞書を生成します。 Displays for lists, sets and dictionaries を参照してください。 dictionary view (辞書ビュー) dict.keys() 、 dict.values() 、 dict.items() が返すオブ...です。 results = {c for c in 'abracadabra' if c not in 'abc'} は、文字列の集合 {'r', 'd'} を生成します。 Displays for lists, sets and dictionaries を参照してください。 single dispatch (単一ディスパッチ) ジェネリック関数 のディスパッチの一形態で、一つの... - https://man.mtool.work/python/3.14/glossary.html
- xml.etree.ElementTree --- ElementTree XML API 8311
- xml.etree.ElementTree --- ElementTree XML API Source code: Lib/xml/etree/ElementTree.py xml.etree.ElementTree モジュールは、XML データの解析と作成を行うシンプルで効率的な API を実装しています。 バージョン 3.3 で変更: このモジュールは利用出来
...はありません。 https://www.w3.org/TR/2006/REC-xml11-20060816/#NT-EncodingDecl と https://www.iana.org/assignments/character-sets/character-sets.xhtml を参照してください。 他のマニュアルの関連ページ PHP gender-gender.get PHP gender-gender.country PHP x... - https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
- What's New in Python 2.4 8311
- What's New in Python 2.4 著者 : A.M. Kuchling この文書は 2005 年 3 月 30 日にリリースされた Python 2.4.1 の新機能について解説します。 Python 2.4 は、真ん中サイズ、のリリースです。急進的だった Python 2.2 ほどには多くの変更をしていませんが、保
...についての実装の説明やデザインの根拠については PEP に託されています。 PEP 218: ビルトインの集合オブジェクト Python 2.3 では sets モジュールが導入されました。 集合データ型の C 実装が、新しい 2 つの組み込み型 set(iterable) と frozenset(iterable) として...) 型は set() の immutable 版です。 immutable かつハッシュ可能なので、辞書のキーやほかの set のメンバとして使えるでしょう。 sets モジュールも標準ライブラリに残っており、 Set や ImmutableSet のサブクラスを作りたい場合に役立つかもしれません。 現時点でこ... - https://man.mtool.work/python/3.14/whatsnew/2.4.html