Python 3.6.5 ドキュメント 検索
Results of 1 - 10 of about 28 for Counter (0.005 sec.)
- 8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 16124
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...数のマッピングの一つのビューを作成する辞書風のクラス Counter ハッシュ可能なオブジェクトを数え上げる辞書のサブク...nake' : 'red' }, {}, { 'lion' : 'orange' }) 8.3.2. Counter オブジェクト ¶ 便利で迅速な検数をサポートするカウン...> # Tally occurrences of words in a list >>> cnt = Counter () >>> for word in [ 'red' , 'blue' , 'red' , 'gre..., 'blue' , 'blue' ]: ... cnt [ word ] += 1 >>> cnt Counter({'blue': 3, 'red': 2, 'green': 1}) >>> # Find the... - https://man.plustar.jp/python/library/collections.html - [similar]
- 33.1. formatter --- 汎用の出力書式化機構 — Python 3.6.5 ドキュメント 10274
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...題ありません。 formatter. add_label_data ( format , counter ) ¶ 現在の左マージン位置の左側に配置されるラベルを...際に使われます。 format の値が文字列の場合、整数の値 counter の書式指定として解釈されます。 format の値が文字列...の場合、整数の値をとる counter の書式化指定として解釈されます。書式化された文字列...writer に依存します。 書式化指定は文字列からなり、counter の値と合わせてラベルの値を算出するために使われます... - https://man.plustar.jp/python/library/formatter.html - [similar]
- 19.1.8. email: 使用例 — Python 3.6.5 ドキュメント 8389
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...( args . directory ) except FileExistsError : pass counter = 1 for part in msg . walk (): # multipart/* are j...ension ext = '.bin' filename = 'part- %03d%s ' % ( counter , ext ) counter += 1 with open ( os . path . join... - https://man.plustar.jp/python/library/email.examples.html - [similar]
- 17.1. threading --- スレッドベースの並列処理 — Python 3.6.5 ドキュメント 8389
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...s semaphore objects. A semaphore manages an atomic counter representing the number of release() calls minus t...f necessary until it can return without making the counter negative. If not given, value defaults to 1. オプシ...す。 When invoked without arguments: If the internal counter is larger than zero on entry, decrement it by one...and return true immediately. If the internal counter is zero on entry, block until awoken by a call to... - https://man.plustar.jp/python/library/threading.html - [similar]
- 9. クラス — Python 3.6.5 ドキュメント 8389
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア
...行すると、値 16 を印字し、 x の痕跡は残りません: x . counter = 1 while x . counter < 10 : x . counter = x . cou...nter * 2 print ( x . counter ) del x . counter もうひとつのインスタンス属性は メ... - https://man.plustar.jp/python/tutorial/classes.html - [similar]
- 27.5. timeit --- 小さなコード断片の実行時間計測 — Python 3.6.5 ドキュメント 8291
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...mer ( ) ¶ デフォルトのタイマーです。常に time.perf_counter() です。 バージョン 3.3 で変更: デフォルトのタイマ...ーが time.perf_counter() になりました。 class timeit. Timer ( stmt='pass'...トは pass ) -p , --process ¶ デフォルトの time.perf_counter() の代わり time.process_time() を利用して、実時間で... - https://man.plustar.jp/python/library/timeit.html - [similar]
- 10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 8193
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...Ax By C- D- fillvalue = kwds . get ( 'fillvalue' ) counter = len ( args ) - 1 def sentinel (): nonlocal count...er if not counter : raise ZipExhausted counter -= 1 yield fillvalue... - https://man.plustar.jp/python/library/itertools.html - [similar]
- 16.3. time --- 時刻データへのアクセスと変換 — Python 3.6.5 ドキュメント 8193
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...秒で返します。この関数は Win32 関数 QueryPerformanceCounter() に基づいていて、その精度は通常 1 マイクロ秒以下で...します: 必要に応じて挙動が明確に定義されている perf_counter() または process_time() を使用してください。 time....time.clock() 'monotonic' : time.monotonic() 'perf_counter' : time.perf_counter() 'process_time' : time.proce...で変更: 常に利用出来るようになりました。 time. perf_counter ( ) ¶ パフォーマンスカウンターの値 (小数点以下がミ... - https://man.plustar.jp/python/library/time.html - [similar]
- What's New in Python 2.7 — Python 3.6.5 ドキュメント 8193
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho
...され、 collections モジュールに便利な OrderedDict と Counter が追加され、他にもたくさんの改良が行われています。...stenau; bpo-3860 .) collections モジュールの新しい Counter クラスは、データの数え上げをするときに便利です。 C...代わりに 0 を返します。 >>> from collections import Counter >>> c = Counter () >>> for letter in 'here is a sa...of english text' : ... c [ letter ] += 1 ... >>> c Counter({' ': 6, 'e': 5, 's': 3, 'a': 2, 'i': 2, 'h': 2, '... - https://man.plustar.jp/python/whatsnew/2.7.html - [similar]
- 8.8. weakref --- 弱参照 — Python 3.6.5 ドキュメント 8094
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...Ref , self ) . __init__ ( ob , callback ) self . __counter = 0 for k , v in annotations . items (): setattr (...self ) . __call__ () if ob is not None : self . __counter += 1 ob = ( ob , self . __counter ) return ob 8.8.... - https://man.plustar.jp/python/library/weakref.html - [similar]
