Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 80 for while (0.028 sec.)
10.1. itertools --- 効率的なループ実行のためのイテレータ生成関数 — Python 3.6.5... 14328
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... compress('ABCDEF', [1,0,1,0,1,1]) --> A C E F dropwhile() pred, seq seq[n], seq[n+1], pred が偽の場所から始 ... まる dropwhile(lambda x: x<5, [1,4,6,4,1]) --> 6 4 1 filterfalse( ... map(pow, [(2,5), (3,2), (10,3)]) --> 32 9 1000 takewhile() pred, seq seq[0], seq[1], pred が偽になるまで ta ... kewhile(lambda x: x<5, [1,4,6,4,1]) --> 1 4 tee() it, n it ...
https://man.plustar.jp/python/library/itertools.html - [similar]
8. 複合文 (compound statement) — Python 3.6.5 ドキュメント 11300
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... 全部の文を一行に連ねた単純な書き方もあります。 if 、 while 、および for 文は、伝統的な制御フロー構成を実現しま ... 、以下のようになります: compound_stmt ::= if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | ... else 節があれば、そのスイートが実行されます。 8.2. while 文 ¶ while 文は、式の値が真である間、実行を繰り返す ... ために使われます: while_stmt ::= "while" expression ":" suite ["else" ":" ...
https://man.plustar.jp/python/reference/compound_stmts.html - [similar]
4. その他の制御フローツール — Python 3.6.5 ドキュメント 10040
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ル » 4. その他の制御フローツール ¶ 先ほど紹介した while 文の他にも、 Python は他の言語でおなじみの制御フロ ... break 文は、C 言語と同じく、最も内側の for または while ループを中断します。 ループ文は else 節を持つことが ... 象のリストを使い切ってループが終了したとき、または ( while で) 条件が偽になったときに実行されますが、 break 文 ... グラム上何の動作もする必要がない時に使われます: >>> while True : ... pass # Busy-wait for keyboard interrupt ...
https://man.plustar.jp/python/tutorial/controlflow.html - [similar]
10. 完全な文法仕様 — Python 3.6.5 ドキュメント 9533
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... ssert' test [ ',' test ] compound_stmt : if_stmt | while_stmt | for_stmt | try_stmt | with_stmt | funcdef | ... e ( 'elif' test ':' suite ) * [ 'else' ':' suite ] while_stmt : 'while' test ':' suite [ 'else' ':' suite ] ...
https://man.plustar.jp/python/reference/grammar.html - [similar]
デザインと歴史 FAQ — Python 3.6.5 ドキュメント 9287
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... れた多くの人は、C のこの慣用句を使いたいと訴えます: while ( line = readline ( f )) { // do something with li ... ne } Python ではこう書かなくてはなりません: while True : line = f . readline () if not line : break ... きです。 面白いことに、熟練した Python プログラマは while True イディオムを受け入れていて、式構造中の代入がな ... れを綴ることができて、魅力的そうですが、堅牢さでは "while True" を使う方法に劣ることが多いです: line = f . r ...
https://man.plustar.jp/python/faq/design.html - [similar]
13.1. zlib --- gzip 互換の圧縮 — Python 3.6.5 ドキュメント 9287
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ED) is fastest and produces the least compression, while a value of 9 (Z_BEST_COMPRESSION) is slowest and p ... olute value of wbits as the window size logarithm, while producing a raw output stream with no header or tr ... 4 bits of the value as the window size logarithm, while including a basic gzip header and trailing checksu ... nts allow compressing further bytestrings of data, while Z_FINISH finishes the compressed stream and preven ...
https://man.plustar.jp/python/library/zlib.html - [similar]
26.1. typing --- 型ヒントのサポート — Python 3.6.5 ドキュメント 9026
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... -> Generator [ int , float , str ]: sent = yield 0 while sent >= 0 : sent = yield round ( sent ) return 'Do ... start : int ) -> Generator [ int , None , None ]: while True : yield start start += 1 代わりに、ジェネレー ... finite_stream ( start : int ) -> Iterator [ int ]: while True : yield start start += 1 class typing. AsyncG ... -> AsyncGenerator [ int , float ]: sent = yield 0 while sent >= 0.0 : rounded = await round ( sent ) sent ...
https://man.plustar.jp/python/library/typing.html - [similar]
Logging クックブック — Python 3.6.5 ドキュメント 8273
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Logg ... g import threading import time def worker ( arg ): while not arg [ 'stop' ]: logging . debug ( 'Hi from myf ... get = worker , args = ( info ,)) thread . start () while True : try : logging . debug ( 'Hello from main' ) ... # new configurations make, until Ctrl+C is pressed while True : logger . debug ( 'debug message' ) logger . ... ding to whatever policy is configured locally. """ while True : chunk = self . connection . recv ( 4 ) if l ...
https://man.plustar.jp/python/howto/logging-cookbook.html - [similar]
17.1. threading --- スレッドベースの並列処理 — Python 3.6.5 ドキュメント 8026
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... 生産者-消費者問題です: # Consume one item with cv : while not an_item_is_available (): cv . wait () get_an_a ... v . notify () アプリケーションの条件をチェックする while ループは必須です。なぜなら、 wait() が任意の長時間 ... ソッドの呼び出しは以下のように書くのとほぼ等価です: while not predicate (): cv . wait () したがって、 wait() ... t = 5 ) def server (): start_server () b . wait () while True : connection = accept_connection () process_s ...
https://man.plustar.jp/python/library/threading.html - [similar]
8. エラーと例外 — Python 3.6.5 ドキュメント 8026
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... している間に最もよく遭遇する問題の一つでしょう: >>> while True print ( 'Hello world' ) File "<stdin>" , line ... 1 while True print ( 'Hello world' ) ^ SyntaxError : inval ... ることで通知されるということに注意してください。 >>> while True : ... try : ... x = int ( input ( "Please ent ...
https://man.plustar.jp/python/tutorial/errors.html - [similar]
PREV 1 2 3 4 5 6 7 8 NEXT