per page, with , order by , clip by
Results of 1 - 4 of about 4 for indented (0.005 sec.)
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー 12094
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー Added in version 3.2. ソースコード: Lib/argparse.py 注釈 argparse は基本的なコマンドラインアプリケーションの実装に推奨される標準ライブラリのモジュールですが、動作を厳密 ... 返して表示します: >>> parser = argparse . ArgumentParser ( ... prog = 'PROG' , ... description = '''this description ... was indented weird ... but that is okay''' , ... epilog = ''' ... likewise for this epilog whose whitespace will ... be cleaned up and ... hose words will be wrapped ... across a couple lines''' ) >>> parser . print_help () usage: PROG [-h] this description was indented weird but that is okay options: -h, --help show this help message and exit likewise for this epilog whose whitespace will ... scription = textwrap . dedent ( ''' \ ... Please do not mess up this text! ... -------------------------------- ... I have indented it ... exactly the way ... I want it ... ''' )) >>> parser . print_help () usage: PROG [-h] Please do not mess up this tex ...
https://man.mtool.work/python/3.14/library/argparse.html
configparser --- 設定ファイルのパーサー 8968
configparser --- 設定ファイルのパーサー ソースコード: Lib/configparser.py このモジュールは、 Microsoft Windows の INI ファイルに似た構造を持ったベーシックな設定用言語を実装した ConfigParser クラスを提供します。このクラスを使ってユーザーが簡 ... を値の一部として使えなくするため、 # 問題になることがあります。 # ただし、この動作はカスタマイズできます。 [Sections Can Be Indented] can_values_be_as_well = True does_that_mean_anything_special = False purpose = formatting for readability multiline_value ... s = are handled just fine as long as they are indented deeper than the first line of a value # コメントもインデントできます。 無名セクション 最初のセクション (または唯一のセクシ ...
https://man.mtool.work/python/3.14/library/configparser.html
10. 完全な文法仕様 8968
10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント ... '**' expression | ',' . expression + func_type_comment : | NEWLINE TYPE_COMMENT & ( NEWLINE INDENT ) # Must be followed by indented block | TYPE_COMMENT # ========================= END OF THE GRAMMAR =========================== # ======================== ...
https://man.mtool.work/python/3.14/reference/grammar.html
What's New In Python 3.10 6897
What's New In Python 3.10 編集者 : Pablo Galindo Salgado この記事では Python 3.9 と比較した Python 3.10 の新機能を解説します。Python 3.10 は2021年10月4日にリリースされました。全詳細については 変更履歴 をご覧ください。 概要 -- リリースハイラ ... れるようになりました。 >>> def foo (): ... if lel : ... x = 2 File "<stdin>" , line 3 x = 2 ^ IndentationError : expected an indented block after 'if' statement in line 2 AttributeErrors AttributeError を表示するとき、 PyErr_Display() は例外の発生元のオブジ ...
https://man.mtool.work/python/3.14/whatsnew/3.10.html
PREV 1 NEXT