Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 167 for list (0.028 sec.)
リストオブジェクト — Python 3.6.5 ドキュメント 14173
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python/C API リファ ... (concrete object) レイヤ » リストオブジェクト ¶ PyListObject ¶ この PyObject のサブタイプは Python のリス ... トオブジェクトを表現します。 PyTypeObject PyList_Type ¶ この PyTypeObject のインスタンスは Python の ... リスト型を表現します。これは Python レイヤにおける list と同じオブジェクトです。 int PyList_Check ( PyObje ... タイプのインスタンスである場合に真を返します。 int PyList_CheckExact ( PyObject *p ) ¶ p がリスト型オブジェク ...
https://man.plustar.jp/python/c-api/list.html - [similar]
21.16. nntplib --- NNTP プロトコルクライアント — Python 3.6.5 ドキュメント 9898
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... nnection to the NNTP server running on host host , listening at port port . An optional timeout can be spe ... nnection to the NNTP server running on host host , listening at port port . NNTP_SSL objects have the same ... nse line and the terminating dot) to the file; any list of lines, tuples or objects that the method normal ... tance mapping capability names to (possibly empty) lists of values. On legacy servers which don't understa ...
https://man.plustar.jp/python/library/nntplib.html - [similar]
19.1.6. email.headerregistry: カスタムヘッダーオブジェクト — Python 3.6.5 ドキ... 9240
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... pre-initialized key, defects . defects is an empty list. The parse method should append any detected defec ... ts to this list. On return, the kwds dictionary must contain value ... lue will have a timezone of -0000 . Much more useful is to use the localtime() function from the utils mod ... at are not part of a group are represented in this list as single-address Groups whose display_name is Non ...
https://man.plustar.jp/python/library/email.headerregistry.html - [similar]
6. 式 (expression) — Python 3.6.5 ドキュメント 8311
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... | literal | enclosure enclosure ::= parenth_form | list_display | dict_display | set_display | generator_e ... ression comp_for comp_for ::= [ASYNC] "for" target_list "in" or_test [ comp_iter ] comp_iter ::= comp_for ... 式の系列です。系列は空の系列であってもかまいません: list_display ::= "[" [ starred_list | comprehension ] " ... す。リストの内容は、式のリストまたはリスト内包表記 (list comprehension) で指定されます。 カンマで区切られた ...
https://man.plustar.jp/python/reference/expressions.html - [similar]
5. データ構造 — Python 3.6.5 ドキュメント 8311
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ストオブジェクトのすべてのメソッドを以下に示します: list. append ( x ) リストの末尾に要素を一つ追加します。 ... a[len(a):] = [x] と等価です。 list. extend ( iterable ) イテラブルのすべての要素を対象 ... トを拡張します。 a[len(a):] = iterable と等価です。 list. insert ( i , x ) 指定した位置に要素を挿入します。 ... また a.insert(len(a), x) は a.append(x) と等価です。 list. remove ( x ) リスト中で、値 x を持つ最初の要素を削 ...
https://man.plustar.jp/python/tutorial/datastructures.html - [similar]
8.3. collections --- コンテナデータ型 — Python 3.6.5 ドキュメント 8254
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... モジュールは、汎用の Python 組み込みコンテナ dict , list , set , および tuple に代わる、特殊なコンテナデータ ... サブクラス化を簡単にする辞書オブジェクトのラッパ UserList リストのサブクラス化を簡単にするリストオブジェクト ... ontext del d [ 'x' ] # Delete from current context list ( d ) # All nested values k in d # Check all neste ... ます。例えば: >>> # Tally occurrences of words in a list >>> cnt = Counter () >>> for word in [ 'red' , 'bl ...
https://man.plustar.jp/python/library/collections.html - [similar]
What's New in Python 2.4 — Python 3.6.5 ドキュメント 8186
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » What's New in Pytho ... ばこれで良いです: print sum ( obj . count for obj in list_all_objects ()) ジェネレータ式はリスト内包とは色々 ... 意してください。イテレータを逆順にしたければ、最初に list() でリストに変換してください: >>> input = open ( ' ... /etc/passwd' , 'r' ) >>> for line in reversed ( list ( input )): ... print line ... root:*:0:0:System A ... 'D', 'b', 'c'] >>> # Using 'key' parameter to sort list >>> L . sort ( key = lambda x : x . lower ()) >>> ...
https://man.plustar.jp/python/whatsnew/2.4.html - [similar]
26.6. unittest.mock --- 入門 — Python 3.6.5 ドキュメント 7982
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ection . cursor () . execute ( "SELECT 1" ) . call_list () >>> mock . mock_calls [call.connection.cursor() ... = expected True call object を chained call を表す list にするために .call_list() を使います。 26.6.1.7. モ ... lls には複数のエントリーがあるでしょう。 call.call_list() を使用することで、この呼び出しのリストを作成する ... _call ( 'spam' , 'eggs' ) . start_call () >>> call_list = chained . call_list () >>> assert mock_backend . ...
https://man.plustar.jp/python/library/unittest.mock-examples.html - [similar]
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 7925
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ta = [ 3 , 4 , 6 , 2 , 1 , 9 , 0 , 7 , 5 , 8 ] >>> list ( accumulate ( data , operator . mul )) # running ... roduct [3, 12, 72, 144, 144, 1296, 0, 0, 0, 0] >>> list ( accumulate ( data , max )) # running maximum [3, ... shflows = [ 1000 , - 90 , - 90 , - 90 , - 90 ] >>> list ( accumulate ( cashflows , lambda bal , pmt : bal ... ble ) n = len ( pool ) if r > n : return indices = list ( range ( r )) yield tuple ( pool [ i ] for i in i ...
https://man.plustar.jp/python/library/itertools.html - [similar]
プログラミング FAQ — Python 3.6.5 ドキュメント 7789
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... たらいいですか? 実引数と仮引数の違いは何ですか? なぜ list 'y' を変更すると list 'x' も変更されるのですか? 出 ... ) 42 、 314 、 somevar という値は実引数です。 なぜ list 'y' を変更すると list 'x' も変更されるのですか? ¶ ... リストを変更しますが、タプルや整数は変更しません( a_list += [1, 2, 3] は a_list.extend([1, 2, 3]) と同じ意味 ... で、そして a_list を変更しますが、 some_tuple += (1, 2, 3) と some_i ...
https://man.plustar.jp/python/faq/programming.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 NEXT