Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 37 for operator (0.059 sec.)
10.3. operator --- 関数形式の標準演算子 — Python 3.6.5 ドキュメント 16322
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... リ » 10. 関数型プログラミング用モジュール » 10.3. operator --- 関数形式の標準演算子 ¶ ソースコード: Lib/opera ... tor.py operator モジュールは、Python の組み込み演算子に対応する効率 ... 的な関数群を提供します。 例えば、 operator.add(x, y) は式 x+y と等価です。 多くの関数名は、特 ... 名前はサポートする拡張比較演算子からとられています: operator. lt ( a , b ) ¶ operator. le ( a , b ) ¶ operator. ...
https://man.plustar.jp/python/library/operator.html - [similar]
9.1. numbers --- 数の抽象基底クラス — Python 3.6.5 ドキュメント 10860
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... .Fraction では次のようなものを利用しています: def _operator_fallbacks ( monomorphic_operator , fallback_operat ... ance ( b , ( int , Fraction )): return monomorphic_operator ( a , b ) elif isinstance ( b , float ): return fa ... llback_operator ( float ( a ), b ) elif isinstance ( b , complex ) ... : return fallback_operator ( complex ( a ), b ) else : return NotImplemented ...
https://man.plustar.jp/python/library/numbers.html - [similar]
26.7. 2to3 - Python 2 から 3 への自動コード変換 — Python 3.6.5 ドキュメント 9582
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... iterals ¶ 8 進数リテラルを新しい構文に変換します。 operator ¶ 関数の呼び出しは、 operator モジュール内のさまざ ... s など。以下のマッピングが行われます。 対象 変換先 operator.isCallable(obj) hasattr(obj, '__call__') operator. ... sequenceIncludes(obj) operator.contains(obj) operator.isSequenceType(obj) isinsta ... nce(obj, collections.Sequence) operator.isMappingType(obj) isinstance(obj, collections.Map ...
https://man.plustar.jp/python/library/2to3.html - [similar]
関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 9155
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数 ... , 8 , 9 , ... 要素に対して関数を呼ぶ ¶ いま使った operator モジュールには、Python の演算子に対応する関数が入っ ... ています。いくつか例を挙げると、 operator.add(a, b) (二つの値を加算)、 operator.ne(a, b) ( a ... != b と同じ)、 operator.attrgetter('id') ( .id 属性を取得するコーラブルを返 ... func(initial_value, A) が実行されます。 >>> import operator , functools >>> functools . reduce ( operator . co ...
https://man.plustar.jp/python/howto/functional.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 8145
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... う形で実現できます。 これらのツールと組み込み関数は operator モジュール内の高速な関数とともに使うことで見事に動 ... プすることで効率的な内積計算を実現できます: sum(map(operator.mul, vector1, vector2)) 。 Infinite iterators: イテ ... よそ次と等価です: def accumulate ( iterable , func = operator . add ): 'Return running totals' # accumulate([1,2 ... ,3,4,5]) --> 1 3 6 10 15 # accumulate([1,2,3,4,5], operator.mul) --> 1 2 6 24 120 it = iter ( iterable ) try : ...
https://man.plustar.jp/python/library/itertools.html - [similar]
ソート HOW TO — Python 3.6.5 ドキュメント 8098
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » ソー ... ', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュール関数 ¶ 上述した key 関数のパターンはとて ... n は高速で扱いやすいアクセサ関数を提供しています。 operator モジュールには itemgetter() , attrgetter() そして ... すると、上の例はもっと簡単で高速になります: >>> from operator import itemgetter , attrgetter >>> sorted ( studen ... ', 'B', 10), ('jane', 'B', 12), ('john', 'A', 15)] operator モジュールの関数は複数の段階でのソートを可能にしま ...
https://man.plustar.jp/python/howto/sorting.html - [similar]
32.2. ast --- 抽象構文木 — Python 3.6.5 ドキュメント 7671
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... xpr* targets, expr value) | AugAssign(expr target, operator op, expr value) -- 'simple' indicates that we anno ... BoolOp(boolop op, expr* values) | BinOp(expr left, operator op, expr right) | UnaryOp(unaryop op, expr operand ... slice* dims) | Index(expr value) boolop = And | Or operator = Add | Sub | Mult | MatMult | Div | Mod | Pow | L ...
https://man.plustar.jp/python/library/ast.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 7671
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ing.managers import BaseManager , BaseProxy import operator ## class Foo : def f ( self ): print ( 'you called ... callmethod ( '__next__' ) # Function to return the operator module def get_operator_module (): return operator ... baz , proxytype = GeneratorProxy ) # register get_operator_module(); make public functions accessible via pro ... xy MyManager . register ( 'operator' , get_operator_module ) ## def test (): manager = ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
10. 関数型プログラミング用モジュール — Python 3.6.5 ドキュメント 7624
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ブジェクトの操作 10.2.1. partial オブジェクト 10.3. operator --- 関数形式の標準演算子 10.3.1. 演算子から関数への ...
https://man.plustar.jp/python/library/functional.html - [similar]
32.7. tokenize --- Pythonソースのためのトークナイザ — Python 3.6.5 ドキュメント 7577
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... で便利です。 To simplify token stream handling, all operator and delimiter tokens and Ellipsis are returned usi ... property named exact_type that contains the exact operator type for token.OP tokens. For all other token type ...
https://man.plustar.jp/python/library/tokenize.html - [similar]
PREV 1 2 3 4 NEXT