per page, with , order by , clip by
Results of 1 - 10 of about 25 for attrgetter (0.008 sec.)
ソートのテクニック — Python 3.14.8 ドキュメント 12702
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... 常に一般的なので、Python はアクセサ関数を簡単に速く作れる便利な関数を提供しています。 operator モジュールに itemgetter() 、 attrgetter() 、および methodcaller() 関数があります。 これらの関数を利用すると、上の例はもっと簡単で高速になります: >>> from operator ... import itemgetter , attrgetter >>> sorted ( student_tuples , key = itemgetter ( 2 )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] >>> sorted ... ( student_objects , key = attrgetter ( 'age' )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュールの関数は複数の段階でのソートを可能 ...
https://man.mtool.work/python/3.14/howto/sorting.html
ソートのテクニック — Python 3.14.8 ドキュメント 12702
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » ソートのテクニック テーマ 自動 ライト ダーク | ソートのテクニック ¶ Author : Andrew Dalke and Raymond Hettinger Python のリストにはリストをインプレ ... 常に一般的なので、Python はアクセサ関数を簡単に速く作れる便利な関数を提供しています。 operator モジュールに itemgetter() 、 attrgetter() 、および methodcaller() 関数があります。 これらの関数を利用すると、上の例はもっと簡単で高速になります: >>> from operator ... import itemgetter , attrgetter >>> sorted ( student_tuples , key = itemgetter ( 2 )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] >>> sorted ... ( student_objects , key = attrgetter ( 'age' )) [('dave', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュールの関数は複数の段階でのソートを可能 ...
https://man.mtool.work/python/3.14/howto/sorting.html
operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 11457
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子 ... rs as arguments for map() , sorted() , itertools.groupby() , or other functions that expect a function argument. operator. attrgetter ( attr ) ¶ operator. attrgetter ( * attrs ) 演算対象から attr を取得する呼び出し可能なオブジェクトを返します。二つ以上の属 ... 性を要求された場合には、属性のタプルを返します。属性名はドットを含むこともできます。例えば: f = attrgetter('name') とした後で、 f(b) を呼び出すと b.name を返します。 f = attrgetter('name', 'date') とした後で、 f(b) を呼び出すと ( ... b.name, b.date) を返します。 f = attrgetter('name.first', 'name.last') とした後で、 f(b) を呼び出すと (b.name.first, b.name.last) を返します。 次と等価です: def attrg ...
https://man.mtool.work/python/3.14/library/operator.html
operator --- 関数形式の標準演算子 — Python 3.14.8 ドキュメント 10942
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 関数型プログラミング用モジュール » operator --- 関数形式の標準演算子 テーマ 自動 ライト ダーク | operator --- 関数形式の標準演算子 ... rs as arguments for map() , sorted() , itertools.groupby() , or other functions that expect a function argument. operator. attrgetter ( attr ) ¶ operator. attrgetter ( * attrs ) 演算対象から attr を取得する呼び出し可能なオブジェクトを返します。二つ以上の属 ... 性を要求された場合には、属性のタプルを返します。属性名はドットを含むこともできます。例えば: f = attrgetter('name') とした後で、 f(b) を呼び出すと b.name を返します。 f = attrgetter('name', 'date') とした後で、 f(b) を呼び出すと ( ... b.name, b.date) を返します。 f = attrgetter('name.first', 'name.last') とした後で、 f(b) を呼び出すと (b.name.first, b.name.last) を返します。 次と等価です: def attrg ...
https://man.mtool.work/python/3.14/library/operator.html
bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 8634
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise ... ブルのレコードの順序付けに使用されるフィールドを抽出します: >>> from collections import namedtuple >>> from operator import attrgetter >>> from bisect import bisect , insort >>> from pprint import pprint >>> Movie = namedtuple ( 'Movie' , ( 'name' , 'releas ... Hitchcock' ), ... Movie ( 'Aliens' , 1986 , 'Cameron' ) ... ] >>> # Find the first movie released after 1960 >>> by_year = attrgetter ( 'released' ) >>> movies . sort ( key = by_year ) >>> movies [ bisect ( movies , 1960 , key = by_year )] Movie(name='The ...
https://man.mtool.work/python/3.14/library/bisect.html
bisect --- 配列二分法アルゴリズム — Python 3.14.8 ドキュメント 8634
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » データ型 » bisect --- 配列二分法アルゴリズム テーマ 自動 ライト ダーク | bisect --- 配列二分法アルゴリズム ¶ ソースコード: Lib/bise ... ブルのレコードの順序付けに使用されるフィールドを抽出します: >>> from collections import namedtuple >>> from operator import attrgetter >>> from bisect import bisect , insort >>> from pprint import pprint >>> Movie = namedtuple ( 'Movie' , ( 'name' , 'releas ... Hitchcock' ), ... Movie ( 'Aliens' , 1986 , 'Cameron' ) ... ] >>> # Find the first movie released after 1960 >>> by_year = attrgetter ( 'released' ) >>> movies . sort ( key = by_year ) >>> movies [ bisect ( movies , 1960 , key = by_year )] Movie(name='The ...
https://man.mtool.work/python/3.14/library/bisect.html
索引 — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... tempted (doctest.TestResults の属性) AttlistDeclHandler() (xml.parsers.expat.xmlparser のメソッド) Attr (xml.dom のクラス) attrgetter() (operator モジュール) attrib (xml.etree.ElementTree.Element の属性) Attribute (ast のクラス) AttributeError 例外 attribu ...
https://man.mtool.work/python/3.14/genindex-A.html
What's New in Python 2.5 — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature ... in argument to the nis.match() and nis.maps() functions. (Contributed by Ben Bell.) The operator module's itemgetter() and attrgetter() functions now support multiple fields. A call such as operator.attrgetter('a', 'b') will return a function that retrieve ...
https://man.mtool.work/python/3.14/whatsnew/2.5.html
索引 — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – A A (re モジュール) a2b_base64() (binascii モジュール) a2b_hex() (binascii モジュール) a2b_qp() (binascii モジュール) a2b_uu() (binasc ... tempted (doctest.TestResults の属性) AttlistDeclHandler() (xml.parsers.expat.xmlparser のメソッド) Attr (xml.dom のクラス) attrgetter() (operator モジュール) attrib (xml.etree.ElementTree.Element の属性) Attribute (ast のクラス) AttributeError 例外 attribu ...
https://man.mtool.work/python/3.14/genindex-A.html
What's New in Python 2.5 — Python 3.14.8 ドキュメント 7754
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » What's New in Python » What's New in Python 2.5 テーマ 自動 ライト ダーク | What's New in Python 2.5 ¶ 著者 : A.M. Kuchling This article explains the new feature ... in argument to the nis.match() and nis.maps() functions. (Contributed by Ben Bell.) The operator module's itemgetter() and attrgetter() functions now support multiple fields. A call such as operator.attrgetter('a', 'b') will return a function that retrieve ...
https://man.mtool.work/python/3.14/whatsnew/2.5.html
PREV 1 2 3 NEXT