Python 3.6.5 ドキュメント 検索
Results of 11 - 20 of about 167 for list (0.052 sec.)
- 関数型プログラミング HOWTO — Python 3.6.5 ドキュメント 7721
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » 関数
...
rint ( i ) for i in obj : print ( i ) イテレータは list() や tuple() といったコンストラクタ関数を使ってリス...
しれません。 リスト内包表記とジェネレータ式 (略して「listcomp」と「genexp」) は、そうした操作向けの簡潔な表記...
トスペースをすべて削るのは次のコードでできます: line_list = [ ' line 1 \n ' , 'line 2 \n ' , ... ] # Generat...
stripped_iter = ( line . strip () for line in line_list ) # List comprehension -- returns list stripped_li...
- https://man.plustar.jp/python/howto/functional.html - [similar]
- 26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 7528
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
スに代入することで定義されます。この例では Vector と List[float] は交換可能な同義語として扱われます。 from t...
yping import List Vector = List [ float ] def scale ( scalar : float...
[ scalar * num for num in vector ] # typechecks; a list of floats qualifies as a Vector. new_vector = scal...
有用です。例えば: from typing import Dict , Tuple , List ConnectionOptions = Dict [ str , str ] Address = T...
- https://man.plustar.jp/python/library/typing.html - [similar]
- 8. 複合文 (compound statement) — Python 3.6.5 ドキュメント 7324
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ
...
mt | async_for_stmt | async_funcdef suite ::= stmt_list NEWLINE | NEWLINE INDENT statement + DEDENT statem...
ent ::= stmt_list NEWLINE | compound_stmt stmt_list ::= simple_stmt...
理を行うために使われます: for_stmt ::= "for" target_list "in" expression_list ":" suite ["else" ":" suite ]...
ルオブジェクトを与えなければなりません。 expression_list の結果に対するイテレータが生成されます。その後、イ...
- https://man.plustar.jp/python/reference/compound_stmts.html - [similar]
- 21.13. ftplib --- FTPプロトコルクライアント — Python 3.6.5 ドキュメント 7267
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
nge into "debian" directory >>> ftp . retrlines ( 'LIST' ) # list directory contents -rw-rw-r-- 1 1176 117...
d , callback=None ) ¶ Retrieve a file or directory listing in ASCII transfer mode. cmd should be an approp...
R command (see retrbinary() ) or a command such as LIST or NLST (usually just the string 'LIST' ). LIST re...
trieves a list of files and information about those files. NLST r...
- https://man.plustar.jp/python/library/ftplib.html - [similar]
- 26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 7267
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
assert_called_once_with() that only pass if the call is the most recent one, and in the case of assert_cal...
key='fish', next='w00t!') call_args は、 call_args_list や method_calls 、 mock_calls と同様、 call オブジ...
す。 calls as tuples を参照してください。 call_args_list ¶ モックの呼び出しを順に記録したリストです (よって...
リストが返されます。 call オブジェクトは、 call_args_list の比較対象となる呼び出しのリストを作成する際に便利...
- https://man.plustar.jp/python/library/unittest.mock.html - [similar]
- 17.2. multiprocessing --- プロセスベースの並列処理 — Python 3.6.5 ドキュメント 7199
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
ることができます。 Manager() 関数が返すマネージャは list , dict , Namespace , Lock , RLock , Semaphore , Bo...
) as manager : d = manager . dict () l = manager . list ( range ( 10 )) p = Process ( target = f , args =...
zed across processes. This notably includes shared lists and dictionaries. Barrier ( parties [ , action [...
t オブジェクトを作成して、そのプロキシを返します。 list ( ) ¶ list ( sequence ) 共有 list オブジェクトを作...
- https://man.plustar.jp/python/library/multiprocessing.html - [similar]
- デザインと歴史 FAQ — Python 3.6.5 ドキュメント 7131
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問
...
Python では、 baseclass.methodname(self, <argument list>) と書けます。これは特に、 __init__() メソッドに便...
omething with line... Python にメソッドを使う機能 (list.index() 等) と関数を使う機能 (len(list) 等) がある...
クリプタを使い果たすでしょう: for file in very_long_list_of_files : f = open ( file ) c = f . read ( 1 ) 実...
のスキームに関係なく動きます: for file in very_long_list_of_files : with open ( file ) as f : c = f . read...
- https://man.plustar.jp/python/faq/design.html - [similar]
- 29.9. traceback --- スタックトレースの表示または取得 — Python 3.6.5 ドキュメン... 6995
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
t_stack() と同じ意味を持ちます。 traceback. format_list ( extracted_list ) ¶ extract_tb() または extract_s...
traceback. format_tb ( tb , limit=None ) ¶ format_list(extract_tb(tb, limit)) の省略表現です。 traceback....
format_stack ( f=None , limit=None ) ¶ format_list(extract_stack(f, limit)) の省略表現です。 tracebac...
ptured as object representations. classmethod from_list ( a_list ) ¶ Construct a StackSummary object from...
- https://man.plustar.jp/python/library/traceback.html - [similar]
- 14.4. xdrlib --- XDR データのエンコードおよびデコード — Python 3.6.5 ドキュメン... 6995
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
イやリストのパック処理をサポートします: Packer. pack_list ( list , pack_item ) ¶ 一様な項目からなる list をパ...
です: import xdrlib p = xdrlib . Packer () p . pack_list ([ 1 , 2 , 3 ], p . pack_int ) Packer. pack_farray...
パック処理するための関数です。 Packer. pack_array ( list , pack_item ) ¶ 一様の項目からなる可変長の list を...
トのアンパック処理をサポートします: Unpacker. unpack_list ( unpack_item ) ¶ 一様な項目からなるリストをアンパ...
- https://man.plustar.jp/python/library/xdrlib.html - [similar]
- 19.1.7. email.contentmanager: MIME 内容の管理 — Python 3.6.5 ドキュメント 6927
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ
...
None ) email.contentmanager. set_content ( msg , <'list'> , subtype='mixed' , disposition=None , filename=...
be used to construct message/partial parts). For <'list'> , which should be a list of EmailMessage objects...
mixed if it is not. If the message parts in the <'list'> have MIME-Version headers, remove them. If chars...
tent-Type header. If headers is specified and is a list of strings of the form headername: headervalue or...
- https://man.plustar.jp/python/library/email.contentmanager.html - [similar]