Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 111 - 120 of about 234 for IF (0.254 sec.)
16.5. getopt --- C 言語スタイルのコマンドラインオプションパーサ — Python 3.6.5 ... 4792
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... output = None verbose = False for o , a in opts : if o == "-v" : verbose = True elif o in ( "-h" , "--h ... elp" ): usage () sys . exit () elif o in ( "-o" , "--output" ): output = a else : asse ... rt False , "unhandled option" # ... if __name__ == "__main__" : main () argparse モジュー ... スをより少ないコードで実現できます: import argparse if __name__ == '__main__' : parser = argparse . Argum ...
https://man.plustar.jp/python/library/getopt.html - [similar]
36.2. imp --- import 内部へのアクセス — Python 3.6.5 ドキュメント 4792
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... を使うことが最も良いです。 バージョン 3.3 で非推奨: If previously used in conjunction with imp.find_modul ... the replacement you chose for imp.find_module() . If you called imp.load_module() and related functions ... ocals = None , fromlist = None ): # Fast path: see if the module has already been imported. try : return ... sys . modules [ name ] except KeyError : pass # If any of the following calls raises an exception, # ...
https://man.plustar.jp/python/library/imp.html - [similar]
11.2. os.path --- 共通のパス名操作 — Python 3.6.5 ドキュメント 4792
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... なりました。 os.path. isfile ( path ) ¶ Return True if path is an existing regular file. This follows sym ... になりました。 os.path. isdir ( path ) ¶ Return True if path is an existing directory. This follows symbol ... なりました。 os.path. islink ( path ) ¶ Return True if path refers to an existing directory entry that is ... a symbolic link. Always False if symbolic links are not supported by the Python run ...
https://man.plustar.jp/python/library/os.path.html - [similar]
18.7. asynchat --- 非同期ソケットコマンド/レスポンスハンドラ — Python 3.6.5 ド... 4751
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... re.dispatcher , async_chat allows you to define a FIFO queue of producers . A producer need have only on ... from the queue and starts using the next producer, if any. When the producer queue is empty the handle_w ... r . append ( data ) def found_terminator ( self ): if self . reading_headers : self . reading_headers = ... "" . join ( self . ibuffer )) self . ibuffer = [] if self . op . upper () == b "POST" : clen = self . h ...
https://man.plustar.jp/python/library/asynchat.html - [similar]
11.8. fnmatch --- Unix ファイル名のパターンマッチ — Python 3.6.5 ドキュメント 4751
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... nmatch import os for file in os . listdir ( '.' ): if fnmatch . fnmatch ( file , '*.txt' ): print ( file ... s のリストの部分集合を返します。 [n for n in names if fnmatch(n, pattern)] と同じですが、もっと効率よく実 ...
https://man.plustar.jp/python/library/fnmatch.html - [similar]
17.7. queue --- 同期キュークラス — Python 3.6.5 ドキュメント 4751
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... The module implements three types of queue, which differ only in the order in which the entries are retr ... ieved. In a FIFO queue, the first tasks added are the first retrie ... ved. In a LIFO queue, the most recently added entry is the first ... ss queue. Queue ( maxsize=0 ) ¶ Constructor for a FIFO queue. maxsize is an integer that sets the upperb ...
https://man.plustar.jp/python/library/queue.html - [similar]
21.10. urllib.robotparser --- robots.txt のためのパーザ — Python 3.6.5 ドキュメ... 4751
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... eb スパイダープログラムを実装する際に便利です。 modified ( ) ¶ robots.txt ファイルを最後に取得した時刻を ... ter from robots.txt for the useragent in question. If there is no such parameter or it doesn't apply to ... the useragent specified or the robots.txt entry for this parameter has ... as a named tuple RequestRate(requests, seconds) . If there is no such parameter or it doesn't apply to ...
https://man.plustar.jp/python/library/urllib.robotparser.html - [similar]
26.3. doctest --- 対話的な実行例をテストする — Python 3.6.5 ドキュメント 4710
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... t): ... OverflowError: n too large """ import math if not n >= 0 : raise ValueError ( "n must be >= 0" ) ... if math . floor ( n ) != n : raise ValueError ( "n mu ... st be exact integer" ) if n + 1 == n : # catch a value like 1e300 raise Over ... <= n : result *= factor factor += 1 return result if __name__ == "__main__" : import doctest doctest . ...
https://man.plustar.jp/python/library/doctest.html - [similar]
19.1.5. email.errors: 例外及び欠陥クラス — Python 3.6.5 ドキュメント 4710
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... . The set_boundary() method will raise this error if the content type is unknown when the method is cal ... ssage where the problem was found, so for example, if a message nested inside a multipart/alternative ha ...
https://man.plustar.jp/python/library/email.errors.html - [similar]
8.5. heapq --- ヒープキューアルゴリズム — Python 3.6.5 ドキュメント 4710
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 作成するには、 [] に初期化されたリストを使うか、 heapify() を用いて要素の入ったリストを変換します。 次の関 ... 別々に呼び出すよりも効率的に実行します。 heapq. heapify ( x ) ¶ リスト x をインプレース処理し、線形時間で ... w task or update the priority of an existing task' if task in entry_finder : remove_task ( task ) count ... 'Mark an existing task as REMOVED. Raise KeyError if not found.' entry = entry_finder . pop ( task ) en ...
https://man.plustar.jp/python/library/heapq.html - [similar]