Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 28 for Counter (0.051 sec.)
What's New In Python 3.1 — Python 3.6.5 ドキュメント 8094
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 内にある一意な要素を数え上げるのに便利な collections.Counter クラスが追加されました: >>> Counter ([ 'red' , 'bl ... ue' , 'red' , 'green' , 'blue' , 'blue' ]) Counter({'blue': 3, 'red': 2, 'green': 1}) (Contributed by ...
https://man.plustar.jp/python/whatsnew/3.1.html - [similar]
What's New In Python 3.2 — Python 3.6.5 ドキュメント 8094
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ns from Mark Dickinson.) collections ¶ collections.Counter クラスに 2 つの形式のインプレイス減算が追加されまし ... ースにより適しています。 >>> from collections import Counter >>> tally = Counter ( dogs = 5 , cats = 3 ) >>> ta ... lly -= Counter ( dogs = 2 , cats = 8 ) # saturating subtraction > ... >> tally Counter({'dogs': 3}) >>> tally = Counter ( dogs = 5 , cats ...
https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 7898
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ック版です。 バージョン 3.5.2 で追加. class typing. Counter ( collections.Counter, Dict[T, int] ) ¶ collection ... s.Counter のジェネリック版です。 バージョン 3.6.1 で追加. cl ...
https://man.plustar.jp/python/library/typing.html - [similar]
8.5. heapq --- ヒープキューアルゴリズム — Python 3.6.5 ドキュメント 7799
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... '<removed-task>' # placeholder for a removed task counter = itertools . count () # unique sequence count def ... entry_finder : remove_task ( task ) count = next ( counter ) entry = [ priority , count , task ] entry_finder ...
https://man.plustar.jp/python/library/heapq.html - [similar]
What's New in Python 2.5 — Python 3.6.5 ドキュメント 7799
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... 思い出してもらいましょう、単純な例はこんなです: def counter ( maximum ): i = 0 while i < maximum : yield i i + ... = 1 counter(10) を呼び出すと、その結果は 0 から 10 までの値を返 ... が、内部カウンタの値の変更を許す修正をしました: def counter ( maximum ): i = 0 while i < maximum : val = ( yie ... ld i ) # If value provided, change counter if val is not None : i = val else : i += 1 そしてカ ...
https://man.plustar.jp/python/whatsnew/2.5.html - [similar]
関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 7701
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数 ... タの値を変更することができるようになっています。 def counter ( maximum ): i = 0 while i < maximum : val = ( yie ... ld i ) # If value provided, change counter if val is not None : i = val else : i += 1 そしてカ ... ウンタ変更の例がこちらです: >>> it = counter ( 10 ) #doctest: +SKIP >>> next ( it ) #doctest: + ...
https://man.plustar.jp/python/howto/functional.html - [similar]
8. データ型 — Python 3.6.5 ドキュメント 7701
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... オブジェクト 8.3.1.1. ChainMap の例とレシピ 8.3.2. Counter オブジェクト 8.3.3. deque オブジェクト 8.3.3.1. de ...
https://man.plustar.jp/python/library/datatypes.html - [similar]
What's New In Python 3.3 — Python 3.6.5 ドキュメント 7603
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... tions モジュール内に残されています。 ( bpo-11085 ) Counter クラスが、単項 + 演算子、単項 - 演算子、インプレイ ... )、システムクロックの更新の影響を受けません。 perf_counter() : 短期間の計測のために利用可能な最高の解像度を持 ... のため、今後は要件に応じて新たに追加された time.perf_counter() または time.process_time() を使ってください。これ ...
https://man.plustar.jp/python/whatsnew/3.3.html - [similar]
プログラミング FAQ — Python 3.6.5 ドキュメント 7504
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... いくつかのメソッドに状態をカプセル化できます: class counter : value = 0 def set ( self , x ): self . value = x ... ( self ): self . value = self . value - 1 count = counter () inc , dec , reset = count . up , count . down , ...
https://man.plustar.jp/python/faq/programming.html - [similar]
17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 7504
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... を増加させたい場合、以下のようにするのでは不十分です counter . value += 1 関連するロックが再帰的 (それがデフォル ... トです) なら、かわりに次のようにします with counter . get_lock (): counter . value += 1 lock はキーワー ...
https://man.plustar.jp/python/library/multiprocessing.html - [similar]
PREV 1 2 3 NEXT