Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 27 for namedtuple (0.017 sec.)
22.8. sndhdr --- サウンドファイルの識別 — Python 3.6.5 ドキュメント 15108
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... te , nchannels , nframes , sampwidth )で構成される namedtuple() を返します。 type はデータの形式を示す文字列で、 ... サウンドデータの形式を識別します。識別可能なら上記のnamedtupleを返し、識別できない場合は None を返します。 バージョ ... ン 3.5 で変更: 結果が tuple から namedtuple に変更されました。 sndhdr. whathdr ( filename ) ¶ ... ァイル名は filename で渡されます。識別可能なら上記の namedtuple を返し、識別できない場合は None を返します。 バージ ...
https://man.plustar.jp/python/library/sndhdr.html - [similar]
8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 11487
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... に代わる、特殊なコンテナデータ型を実装しています。 namedtuple() 名前付きフィールドを持つタプルのサブクラスを作成 ... ems ()) [('blue', {2, 4}), ('red', {1, 3})] 8.3.5. namedtuple() 名前付きフィールドを持つタプルのファクトリ関数 ¶ ... ールドにアクセスできるようになります。 collections. namedtuple ( typename , field_names , * , verbose=False , ren ... 数が追加されました。 >>> # Basic example >>> Point = namedtuple ( 'Point' , [ 'x' , 'y' ]) >>> p = Point ( 11 , y ...
https://man.plustar.jp/python/library/collections.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 10632
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ように直接アクセスすることもできます。 class typing. NamedTuplenamedtuple の型付き版です。 使い方: class Employ ... ee ( NamedTuple ): name : str id : int これは次と等価です: Employe ... e = collections . namedtuple ( 'Employee' , [ 'name' , 'id' ]) フィールドにデフ ... るにはクラス本体で代入してください: class Employee ( NamedTuple ): name : str id : int = 3 employee = Employee ( ' ...
https://man.plustar.jp/python/library/typing.html - [similar]
What's New In Python 3.1 — Python 3.6.5 ドキュメント 8558
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 後、元の順序で書きなおすことができます。 collections.namedtuple() の _asdict() メソッドは、タプルの順序と同じ順序の ... )] (Contributed by Raymond Hettinger.) collections.namedtuple() が新たにキーワード引数 rename をサポートし、これ ... for desc in cursor . description ] >>> UserQuery = namedtuple ( 'UserQuery' , query_fields , rename = True ) >>> ...
https://man.plustar.jp/python/whatsnew/3.1.html - [similar]
16.14. platform --- 実行中プラットフォームの固有情報を参照する — Python 3.6.5 ... 8393
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... version , machine , processor の6つの属性を持った namedtuple() を返します。 この関数が os.uname() の結果には含ま ... なります。 バージョン 3.3 で変更: 結果が tuple から namedtuple に変更されました。 16.14.2. Java プラットフォーム ...
https://man.plustar.jp/python/library/platform.html - [similar]
7.1. struct --- バイト列をパックされたバイナリデータとして解釈する — Python 3.6... 8048
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... アンパックした結果のフィールドは、変数に割り当てるか named tuple でラップすることによって名前を付けることができます ... ( '<10sHHb' , record ) >>> from collections import namedtuple >>> Student = namedtuple ( 'Student' , 'name seria ...
https://man.plustar.jp/python/library/struct.html - [similar]
What's New In Python 3.5 — Python 3.6.5 ドキュメント 8048
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 列が書き込み可能になりました。これは特に collections.namedtuple() のドキュメンテーション文字列で有用です。 (Contri ... (Contributed by Raymond Hettinger in bpo-23704 .) namedtuple() で生成されたドキュメンテーション文字列が更新可能 ... となりました: Point = namedtuple ( 'Point' , [ 'x' , 'y' ]) Point . __doc__ += ': C ... nd getinnerframes() functions now return a list of named tuples. (Contributed by Daniel Shahaf in bpo-16808 .) i ...
https://man.plustar.jp/python/whatsnew/3.5.html - [similar]
8. データ型 — Python 3.6.5 ドキュメント 7883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... オブジェクト 8.3.4.1. defaultdict の使用例 8.3.5. namedtuple() 名前付きフィールドを持つタプルのファクトリ関数 8 ...
https://man.plustar.jp/python/library/datatypes.html - [similar]
What's New in Python 2.7 — Python 3.6.5 ドキュメント 7883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 後、元の順序で書きなおすことができます。 collections.namedtuple() の _asdict() メソッドは、タプルの順序と同じ順序の ... ちます。 (Both features added by Raymond Hettinger.) namedtuple クラスにオプションの rename 引数が追加されました。 ... ド名に置き換えられます。 >>> from collections import namedtuple >>> T = namedtuple ( 'T' , [ 'field1' , '$illegal' ...
https://man.plustar.jp/python/whatsnew/2.7.html - [similar]
What's New In Python 3.6 — Python 3.6.5 ドキュメント 7883
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... (Contributed by Yury Selivanov in bpo-28720 .) The namedtuple() function now accepts an optional keyword argumen ... used for the __module__ attribute of the returned named tuple class. (Contributed by Raymond Hettinger in bpo-1 ... 7941 .) The verbose and rename arguments for namedtuple() are now keyword-only. (Contributed by Raymond He ... Klose in bpo-8637 .) help() and pydoc can now list named tuple fields in the order they were defined rather than ...
https://man.plustar.jp/python/whatsnew/3.6.html - [similar]
PREV 1 2 3 NEXT