Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 131 - 140 of about 274 for IN (0.311 sec.)
32.2. ast --- 抽象構文木 — Python 3.6.5 ドキュメント 4566
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 辺のツリーのクラスを継承しています。たとえば、 ast.BinOp は ast.expr から継承しています。代替を伴った生成 ... 属性は、文法で定義された型となります。たとえば ast.BinOp のインスタンスは left という属性を持っており、そ ... ければならず、そして妥当な値でなければなりません。 lineno ¶ col_offset ¶ ast.expr や ast.stmt のサブクラス ... のインスタンスにはさらに lineno や col_offset といった属性があります。 lineno は ...
https://man.plustar.jp/python/library/ast.html - [similar]
11.3. fileinput --- 複数の入力ストリームをまたいだ行の繰り返し処理をサポートする... 4566
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 11. ファイルとディレクトリへのアクセス » 11.3. fileinput --- 複数の入力ストリームをまたいだ行の繰り返し処 ... 理をサポートする ¶ ソースコード: Lib/fileinput.py このモジュールは標準入力やファイルの並びにま ... ださい。 典型的な使い方は以下の通りです: import fileinput for line in fileinput . input (): process ( lin ... で繰り返します。もし該当するものがなければ、 sys.stdin がデフォルトとして扱われます。ファイル名として '-' ...
https://man.plustar.jp/python/library/fileinput.html - [similar]
10.3. operator --- 関数形式の標準演算子 — Python 3.6.5 ドキュメント 4566
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... oordiv__ ( a , b ) ¶ a // b を返します。 operator. index ( a ) ¶ operator. __index__ ( a ) ¶ 整数に変換さ ... れた a を返します。 a.__index__() と同等です。 operator. inv ( obj ) ¶ operat ... or. invert ( obj ) ¶ operator. __inv__ ( obj ) ¶ operator ... . __invert__ ( obj ) ¶ obj のビット単位反転を返します。 ~ ...
https://man.plustar.jp/python/library/operator.html - [similar]
26.5. unittest.mock --- モックオブジェクトライブラリ — Python 3.6.5 ドキュメン... 4566
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... します。さらに、ユニークなオブジェクトの作成には sentinel が利用できます。 Mock や MagicMock 、 patch() の ... ます: >>> from unittest.mock import MagicMock >>> thing = ProductionClass () >>> thing . method = MagicMo ... ck ( return_value = 3 ) >>> thing . method ( 3 , 4 , 5 , key = 'value' ) 3 >>> thin ... od' , return_value = None ) as mock_method : ... thing = ProductionClass () ... thing . method ( 1 , 2 , ...
https://man.plustar.jp/python/library/unittest.mock.html - [similar]
14.1. csv --- CSV ファイルの読み書き — Python 3.6.5 ドキュメント 4547
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ません。 csvfile がファイルオブジェクトの場合、 newline='' として開くべきです。 [1] オプションとして dial ... 例: >>> import csv >>> with open ( 'eggs.csv' , newline = '' ) as csvfile : ... spamreader = csv . reader ... , delimiter = ' ' , quotechar = '|' ) ... for row in spamreader : ... print ( ', ' . join ( row )) Spam ... トです。 csvfile がファイルオブジェクトの場合、 newline='' として開くべきです [1] 。オプションとして dial ...
https://man.plustar.jp/python/library/csv.html - [similar]
19.1.10. email.mime: メールと MIME オブジェクトを一から作成 — Python 3.6.5 ドキ... 4547
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... nality is partially replaced by the contentmanager in the new API, but in certain applications these cla ... sses may still be useful, even in non-legacy code. ふつう、メッセージオブジェクト構造 ... サブクラスです: class email.mime.base. MIMEBase ( _maintype , _subtype , * , policy=compat32 , **_params ) ... ための便宜的な基底クラスとして提供されています。 _maintype は Content-Type の主形式 (maintype) であり ( t ...
https://man.plustar.jp/python/library/email.mime.html - [similar]
12.1. pickle --- Python オブジェクトの直列化 — Python 3.6.5 ドキュメント 4547
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 化) は "直列化 (serialization)"、"整列化 (marshalling)"、あるいは [1] "平坦化 (flattening)" とも呼ばれま ... pickle. load ( file , * , fix_imports=True , encoding="ASCII" , errors="strict" ) ¶ pickle オブジェクト ... ド、整数引数をとる read() と、引数を要求しない readline() メソッドがなければなりません。両方のメソッドはバ ... できます。 任意のキーワード引数 fix_imports 、 encoding および errors は Python 2 で作成された pickle スト ...
https://man.plustar.jp/python/library/pickle.html - [similar]
16.3. time --- 時刻データへのアクセスと変換 — Python 3.6.5 ドキュメント 4547
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... time(0) の値を見てください。 エポック秒 ( seconds since the epoch ) は、エポックからの総経過秒数を示して ... 暦年は 2000–2068 になります。 UTC は協定世界時 (Coordinated Universal Time) のことです (以前はグリニッジ標 ... 英仏の妥協によるものです。 DST は夏時間 (Daylight Saving Time) のことで、一年のうちの一定期間に 1 時間タイ ... " の定義そのものは同じ名前の C 関数に依存します。 Windows では、最初にこの関数が呼び出されてからの経過時 ...
https://man.plustar.jp/python/library/time.html - [similar]
6.3. difflib --- 差分の計算を助ける — Python 3.6.5 ドキュメント 4518
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... クラスのコンストラクタは以下のようになっています: __init__ ( tabsize=8 , wrapcolumn=None , linejunk=None ... します。デフォルトは None で折り返しを行いません。 linejunk および charjunk はオプションのキーワード引数で ... のメソッドが public になっています: make_file ( fromlines , tolines , fromdesc='' , todesc='' , context=Fa ... lse , numlines=5 , * , charset='utf-8' ) ¶ fromlines と tolines ...
https://man.plustar.jp/python/library/difflib.html - [similar]
10.2. functools --- 高階関数と呼び出し可能オブジェクトの操作 — Python 3.6.5 ド... 4518
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... に変換します。key 関数を受け取るツール ( sorted() , min() , max() , heapq.nlargest() , heapq.nsmallest() , ... の調整をしやすくするため、ラップされた関数には cache_info() 関数が追加されます。この関数は hits , misses , ... . error . HTTPError : return 'Not Found' >>> for n in 8 , 290 , 308 , 320 , 8 , 218 , 320 , 279 , 289 , ... 320 , 9991 : ... pep = get_pep ( n ) ... print ( n , len ( pep )) >>> get_pep . cache_info () Ca ...
https://man.plustar.jp/python/library/functools.html - [similar]