Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 16 for deque (0.057 sec.)
8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 15266
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ルドを持つタプルのサブクラスを作成するファクトリ関数 deque 両端における append や pop を高速に行えるリスト風の ... eplacement('ABC', 2)) --> AA AB AC BB BC CC 8.3.3. deque オブジェクト ¶ class collections. deque ( [ iterab ... en ] ] ) ¶ iterable で与えられるデータから、新しい deque オブジェクトを ( append() をつかって) 左から右に初 ... 化して返します。 iterable が指定されない場合、新しい deque オブジェクトは空になります。 Deque とは、スタックと ...
https://man.plustar.jp/python/library/collections.html - [similar]
What's New in Python 2.4 — Python 3.6.5 ドキュメント 8802
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... on datatypes. Currently it contains just one type, deque , a double-ended queue that supports efficiently a ... ments from either end: >>> from collections import deque >>> d = deque ( 'ghi' ) # make a new deque with th ... e left side >>> d # show the representation of the deque deque(['f', 'g', 'h', 'i', 'j']) >>> d . pop () # ... item 'f' >>> list ( d ) # list the contents of the deque ['g', 'h', 'i'] >>> 'h' in d # search the deque Tr ...
https://man.plustar.jp/python/whatsnew/2.4.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 8681
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... f tee ( iterable , n = 2 ): it = iter ( iterable ) deques = [ collections . deque () for i in range ( n )] ... def gen ( mydeque ): while True : if not mydeque : # when the local ... w value and except StopIteration : return for d in deques : # load it to all the deques d . append ( newval ... ) yield mydeque . popleft () return tuple ( gen ( d ) for d in deq ...
https://man.plustar.jp/python/library/itertools.html - [similar]
11. 標準ライブラリミニツアー --- その 2 — Python 3.6.5 ドキュメント 8560
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... array('H', [10, 700]) collections モジュールでは、 deque() オブジェクトを提供しています。リスト型に似ていま ... 索の実装に向いています: >>> from collections import deque >>> d = deque ([ "task1" , "task2" , "task3" ]) >> ... ing" , d . popleft ()) Handling task1 unsearched = deque ([ starting_node ]) def breadth_first_search ( uns ...
https://man.plustar.jp/python/tutorial/stdlib2.html - [similar]
8. データ型 — Python 3.6.5 ドキュメント 8456
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ap の例とレシピ 8.3.2. Counter オブジェクト 8.3.3. deque オブジェクト 8.3.3.1. deque のレシピ 8.3.4. defaul ...
https://man.plustar.jp/python/library/datatypes.html - [similar]
5. データ構造 — Python 3.6.5 ドキュメント 8387
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... 要があるからです)。 キューの実装には、 collections.deque を使うと良いでしょう。このクラスは良く設計されてい ... えば以下のようにします: >>> from collections import deque >>> queue = deque ([ "Eric" , "John" , "Michael" ] ... n' >>> queue # Remaining queue in order of arrival deque(['Michael', 'Terry', 'Graham']) 5.1.3. リストの内包 ...
https://man.plustar.jp/python/tutorial/datastructures.html - [similar]
What's New in Python 2.6 — Python 3.6.5 ドキュメント 8387
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... inger.) collections モジュールのもう一つの変更は、 deque 型が省略可能な maxlen パラメータをサポートするよう ... になったことです; 与えられると、 deque のサイズが要素数 maxlen を超えないように制限されま ... す。お腹いっぱいの deque にさらに要素を追加すると、古いものから捨てられます ... 。 >>> from collections import deque >>> dq = deque ( maxlen = 3 ) >>> dq deque([], max ...
https://man.plustar.jp/python/whatsnew/2.6.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 8213
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... アノテーションをつけることに使えます。 class typing. Deque ( deque, MutableSequence[T] ) ¶ collections.deque ...
https://man.plustar.jp/python/library/typing.html - [similar]
What's New In Python 3.2 — Python 3.6.5 ドキュメント 8109
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... '] (Contributed by Raymond Hettinger.) collections.deque クラスに 2 つのメソッド count() と reverse() が追加 ... 置換可能性が増しました: >>> from collections import deque >>> d = deque ( 'simsalabim' ) >>> d . count ( 's' ... ) 2 >>> d . reverse () >>> d deque(['m', 'i', 'b', 'a', 'l', 'a', 's', 'm', 'i', 's'] ...
https://man.plustar.jp/python/whatsnew/3.2.html - [similar]
17.7. queue --- 同期キュークラス — Python 3.6.5 ドキュメント 8040
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... プロセスの文脈で使用されるキュークラス。 collections.deque は、ロックなしで append() や popleft() といったアト ...
https://man.plustar.jp/python/library/queue.html - [similar]
PREV 1 2 NEXT