Python 3.6.5 ドキュメント 検索

phrase: max: clip:
target: order:
Results of 31 - 40 of about 234 for IF (0.061 sec.)
Argparse チュートリアル — Python 3.6.5 ドキュメント 6092
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Argp ... directory by default). Sort entries alphabetically if none of -cftuvSUX nor --sort is specified. ... 上の ... output verbosity" ) args = parser . parse_args () if args . verbosity : print ( "verbosity turned on" ) ... ) の値に None が設定されることです。こうする理由は if 文の真偽判定が偽を返すようにするためです。 ヘルプメ ... ion = "store_true" ) args = parser . parse_args () if args . verbose : print ( "verbosity turned on" ) 実 ...
https://man.plustar.jp/python/howto/argparse.html - [similar]
Python で Curses プログラミング — Python 3.6.5 ドキュメント 6021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python HOWTO » Pyth ... concepts such as buttons, checkboxes, or dialogs; if you need such features, consider a user interface ... e wrapper over the C functions provided by curses; if you're already familiar with curses programming in ... to transfer that knowledge to Python. The biggest difference is that the Python interface makes things s ... impler by merging different C functions such as addstr() , mvaddstr() , ...
https://man.plustar.jp/python/howto/curses.html - [similar]
8. 複合文 (compound statement) — Python 3.6.5 ドキュメント 6021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 言語リファレ ... すが、全部の文を一行に連ねた単純な書き方もあります。 if 、 while 、および for 文は、伝統的な制御フロー構成 ... 合文をネストできます; 以下の文は、 else 節がどちらの if 節に属するかがはっきりしないなどの理由から不正にな ... ります: if test1 : if test2 : print ( x ) また、このコンテキス ... 全て実行されるか、全く実行されないかのどちらかです: if x < y < z : print ( x ); print ( y ); print ( z ) ...
https://man.plustar.jp/python/reference/compound_stmts.html - [similar]
4. その他の制御フローツール — Python 3.6.5 ドキュメント 6021
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python チュートリア ... ますが、これらには多少ひねりを加えてあります。 4.1. if 文 ¶ おそらく最もおなじみの文型は if 文でしょう。例 ... r an integer: " )) Please enter an integer: 42 >>> if x < 0 : ... x = 0 ... print ( 'Negative changed to ... zero' ) ... elif x == 0 : ... print ( 'Zero' ) ... elif x == 1 : .. ... lse : ... print ( 'More' ) ... More ゼロ個以上の elif 部を使うことができ、 else 部を付けることもできます ...
https://man.plustar.jp/python/tutorial/controlflow.html - [similar]
拡張と埋め込み FAQ — Python 3.6.5 ドキュメント 5980
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python よくある質問 ... bject_CallMethod ( f , "seek" , "(ii)" , 10 , 0 ); if ( res == NULL ) { ... an exception occurred ... } ... ィブインタプリタでは、入力が不完全なとき (例えば、 "if" 文の始まりをタイプした時や、カッコや三重文字列引用 ... ode , & _PyParser_Grammar , Py_file_input , & e ); if ( n == NULL ) { if ( e . error == E_EOF ) return 0 ... )); while ( ! done ) { line = readline ( prompt ); if ( NULL == line ) /* Ctrl-D pressed */ { done = 1 ; ...
https://man.plustar.jp/python/faq/extending.html - [similar]
19.1.2. email.parser: 電子メールメッセージのパース — Python 3.6.5 ドキュメント 5939
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ntal FeedParser API. The Parser API is most useful if you have the entire text of the message in memory, ... or if the entire message lives in a file on the file sys ... he list of defects that it can find. Here is the API for the BytesFeedParser : class email.parser. Bytes ... ance. Optional _factory is a no-argument callable; if not specified use the message_factory from the pol ...
https://man.plustar.jp/python/library/email.parser.html - [similar]
8.8. weakref --- 弱参照 — Python 3.6.5 ドキュメント 5857
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... ble to have been replaced by None . __call__ ( ) ¶ If self is alive then mark it as dead and return the ... result of calling func(*args, **kwargs) . If self is dead then return None . detach ( ) ¶ If se ... d and return the tuple (obj, func, args, kwargs) . If self is dead then return None . peek ( ) ¶ If self ... then return the tuple (obj, func, args, kwargs) . If self is dead then return None . alive ¶ ファイナラ ...
https://man.plustar.jp/python/library/weakref.html - [similar]
18.8. signal --- 非同期イベントにハンドラを設定する — Python 3.6.5 ドキュメント 5816
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... an be executing any code (Python or not). However, if the target thread is executing the Python interpre ... ad objects to get a suitable value for thread_id . If signalnum is 0, then no signal is sent, but error ... king is still performed; this can be used to check if the target thread is still running. 利用可能な環境 ... ly processed. The old wakeup fd is returned (or -1 if file descriptor wakeup was not enabled). If fd is ...
https://man.plustar.jp/python/library/signal.html - [similar]
1. C や C++ による Python の拡張 — Python 3.6.5 ドキュメント 5734
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python インタプリタ ... ァイルを spammodule.c と呼ぶことになっています; spammify のように長すぎるモジュール名の場合には、単に spam ... mify.c にもできます。) このファイルの最初の行は以下のよ ... Object * args ) { const char * command ; int sts ; if ( ! PyArg_ParseTuple ( args , "s" , & command )) r ... Object * m ; m = PyModule_Create ( & spammodule ); if ( m == NULL ) return NULL ; SpamError = PyErr_NewE ...
https://man.plustar.jp/python/extending/extending.html - [similar]
29.6. contextlib --- with 文コンテキスト用ユーティリティ — Python 3.6.5 ドキュ... 5734
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.6.5 ドキュメント » Python 標準ライブラ ... be closed at the end of # the with statement, even if attempts to open files later # in the list raise a ... it yet. close_files = stack . pop_all () . close # If opening any file fails, all previously opened file ... s will be # closed automatically. If all files are opened successfully, # they will rem ... in resources : stack . enter_context ( resource ) if need_special_resource (): special = acquire_specia ...
https://man.plustar.jp/python/library/contextlib.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 13 NEXT