Results of 1 - 10 of about 43 for Expression (0.007 sec.)
- 10. 完全な文法仕様 14824
- 10. 完全な文法仕様 以下は Python の完全な文法で、CPython のパーサを生成するための文法から直接得たものです ( Grammar/python.gram を参照)。 ここでは、コード生成とエラー回復に関する詳細を省略しています。 ここで使う記法は、これまでのドキュメント
...lving invalid rules matter # (like any rule in PEG). # # Grammar Syntax (see PEP 617 for more information): # # rule_name: expression # Optionally, a type can be included right after the rule name, which # specifies the return type of the C or Python funct...ion corresponding to the # rule: # rule_name[return_type]: expression # If the return type is omitted, then a void * is returned in C and an Any in # Python. # e1 e2 # Match e1, then match e2....nnot be parsed. # # STARTING RULES # ============== file : [ statements ] ENDMARKER interactive : statement_newline eval : expressions NEWLINE * ENDMARKER func_type : '(' [ type_expressions ] ')' '->' expression NEWLINE * ENDMARKER # GENERAL STATEMENTS # =... - https://man.mtool.work/python/3.14/reference/grammar.html
- 6. 式 (expression) 12865
- 6. 式 (expression) この章では、Python の式における個々の要素の意味について解説します。 構文上の注意: この章以降では、 文法の表記法 を字句解析ではなく構文の記述に使います。 構文規則の (選択肢の 1 つの) 形式が次のように記述され、 name : other
...ます。 拡張では独自の変換動作を定義する必要があります。 6.2. アトム、原子的要素 (atom) Atoms are the most basic elements of expressions. The simplest atoms are names or literals. Forms enclosed in parentheses, brackets or braces are also categorized syntact......' | identifier | literal | enclosure enclosure : | parenth_form | list_display | dict_display | set_display | generator_expression | yield_atom 6.2.1. 組み込み定数 キーワード True 、 False 、 None は 組み込み定数 の名前です。 トークン ... は Ellipsis 定...うに定義します。 strings : ( STRING | fstring )+ | tstring + 6.2.4. Parenthesized forms A parenthesized form is an optional expression list enclosed in parentheses: parenth_form : "(" [ starred_expression ] ")" A parenthesized expression list yields whateve... - https://man.mtool.work/python/3.14/reference/expressions.html
- 8. 複合文 (compound statement) 9471
- 8. 複合文 (compound statement) 複合文には、他の文 (のグループ) が入ります; 複合文は、中に入っている他の文の実行の制御に何らかのやり方で影響を及ぼします。一般的には、複合文は複数行にまたがって書かれますが、全部の文を一行に連ねた単純な書き方も
...に、各節を別々の行に書くようにしています。 8.1. if 文 if 文は、条件分岐を実行するために使われます: if_stmt : "if" assignment_expression ":" suite ( "elif" assignment_expression ":" suite )* [ "else" ":" suite ] if 文は、式を一つ一つ評価してゆき、真になるまで...実行されます。 8.2. while 文 while 文は、式の値が真である間、実行を繰り返すために使われます: while_stmt : "while" assignment_expression ":" suite [ "else" ":" suite ] while 文は式を繰り返し真偽評価し、真であれば最初のスイートを実行します。式が偽であれば (最初...能なオブジェクト (iterable object) 内の要素に渡って反復処理を行うために使われます: for_stmt : "for" target_list "in" starred_expression_list ":" suite [ "else" ":" suite ] starred_expression_list の式を一度評価します。 結果は イテラブル オブジェクトでなければ... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- テキスト処理サービス 9162
- テキスト処理サービス この章で説明するモジュールは幅広い文字列操作や様々なテキスト処理サービスを提供しています。 バイナリデータ処理 で説明する codecs モジュールも、テキスト処理と深く関係しています。 Python の組み込み文字列型については テキス
...string.templatelib --- テンプレート文字列リテラルのサポート テンプレート文字列 型 ヘルパー関数 re --- 正規表現操作 Regular Expression Syntax Special characters Special sequences Standard escapes Module Contents フラグ 関数 例外 Regular Expression Objects M...atch Objects Regular Expression Examples Checking for a Pair scanf() をシミュレートする search() vs. match() Making a Phonebook Text Munging Finding all A...--- GNU readline の補完機能 他のマニュアルの関連ページ PHP readline() PHP readline_completion_function() PHP mysql-xdevapi-expression.construct PHP class.mysql-xdevapi-expression Linux JM yphelper(8) PHP ref.readline... - https://man.mtool.work/python/3.14/library/text.html
- ast --- 抽象構文木 9070
- ast --- 抽象構文木 ソースコード: Lib/ast.py ast モジュールは、Python の抽象構文を表す木を Python アプリケーションで処理するための機能を提供します。 抽象構文自体は Python のリリースごとに変わる可能性がありますが、このモジュールを使えば、現在
...string, constant module Python { mod = Module ( stmt * body , type_ignore * type_ignores ) | Interactive ( stmt * body ) | Expression ( expr body ) | FunctionType ( expr * argtypes , expr returns ) stmt = FunctionDef ( identifier name , arguments args , st...omprehension * generators ) | GeneratorExp ( expr elt , comprehension * generators ) -- the grammar constrains where yield expressions can occur | Await ( expr value ) | Yield ( expr ? value ) | YieldFrom ( expr value ) -- need sequences for compare to dis...JoinedStr ( expr * values ) | TemplateStr ( expr * values ) | Constant ( constant value , string ? kind ) -- the following expression can appear in assignment context | Attribute ( expr value , identifier attr , expr_context ctx ) | Subscript ( expr value... - https://man.mtool.work/python/3.14/library/ast.html
- 7. 単純文 (simple statement) 9070
- 7. 単純文 (simple statement) 単純文とは、単一の論理行内に収められる文です。単一の行内には、複数の単純文をセミコロンで区切って入れることができます。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt |
...| raise_stmt | break_stmt | continue_stmt | import_stmt | future_stmt | global_stmt | nonlocal_stmt | type_stmt 7.1. 式文 (expression statement) 式文は、(主に対話的な使い方では) 値を計算して出力するために使ったり、(通常は) プロシジャ (procedure: 有意な結果...を呼び出すために使います。その他の使い方でも式文を使うことができますし、有用なこともあります。式文の構文は以下の通りです: expression_stmt : starred_expression 式文は式のリスト (単一の式のこともあります) を値評価します。 対話モードでは、値が None でなければ...したり、変更可能なオブジェクトの属性や要素を変更したりするために使われます: assignment_stmt : ( target_list "=" )+ ( starred_expression | yield_expression ) target_list : target ( "," target )* [ "," ] target : identifier | "(" [ target_list ] ")" | "[" [ ta... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- string.templatelib --- テンプレート文字列リテラルのサポート 8977
- string.templatelib --- テンプレート文字列リテラルのサポート ソースコード: Lib/string/templatelib.py 参考 フォーマット済み文字列リテラル テンプレート文字列リテラル(t-string)の構文 PEP 750 テンプレート文字列 Added in version 3.14. テンプレート
...] >>> interpolation Interpolation(3.0, '1. + 2.', None, '.2f') >>> match interpolation : ... case Interpolation ( value , expression , conversion , format_spec ): ... print ( value , expression , conversion , format_spec , sep = ' | ' ) ... 3.0 | 1. + 2....できる ジェネリック型 です。 属性 value : object 補間する式の評価結果。 >>> t ' { 1 + 2 } ' . interpolations [ 0 ] . value 3 expression : str For interpolations created by t-string literals, expression is the expression text found inside the curly brackets (...urly brackets themselves, and ending before the first ! , : , or = if any is present. For manually created interpolations, expression is the arbitrary string provided when constructing the interpolation instance. 手動で作成する Interpolation インスタンスの... - https://man.mtool.work/python/3.14/library/string.templatelib.html
- pdb --- Python デバッガ 8931
- pdb --- Python デバッガ ソースコード: Lib/pdb.py pdb モジュールは Python プログラム用の対話型ソースコードデバッガを定義しています。 条件付きブレークポイントの設定、ソース行単位でのステップ実行、スタックフレームの調査、ソースコードの表示、任
...では、モジュール __main__ の辞書が使われます。(組み込み関数 exec() または eval() の説明を参照してください。) pdb. runeval ( expression , globals = None , locals = None ) デバッガーに制御された状態で (文字列またはコードオブジェクトとして与えられる) expressio...ても無視し、常に呼び出し元のフレームでプログラムを停止します。 run ( statement , globals = None , locals = None ) runeval ( expression , globals = None , locals = None ) runcall ( function , * args , ** kwds ) set_trace ( ) 前述のこれら関数のドキュメントを参...する行は list と同じようにマーカーがつきます。 Added in version 3.2. a(rgs) 現在の関数の引数と、その現在の値を表示します。 p expression 現在のコンテキストにおいて expression を評価し、その値をプリントします。 注釈 print() も使えますが、これはデバッガーコマン... - https://man.mtool.work/python/3.14/library/pdb.html
- Python 言語リファレンス 7558
- Python 言語リファレンス このリファレンスマニュアルは、Python 言語の構文と中核となる意味論を説明します。 簡潔な記述ですが、正確で網羅的であることを目指しています。 組み込みのオブジェクト型と関数については Python 組み込み機能リファレンス で説
...標準のインポートシステムを置き換える 5.7. パッケージの相対インポート 5.8. __main__ に対する特別な考慮 5.9. 参考資料 6. 式 (expression) 6.1. 算術変換 (arithmetic conversion) 6.2. アトム、原子的要素 (atom) 6.3. プライマリ 6.4. Await 式 6.5. べき乗演算 (power...の二項演算 (binary bitwise operation) 6.10. 比較 6.11. ブール演算 (boolean operation) 6.12. 代入式 6.13. 条件式 (Conditional Expressions) 6.14. ラムダ (lambda) 6.15. 式のリスト 6.16. 評価順序 6.17. 演算子の優先順位 7. 単純文 (simple statement) 7.1. 式文 (exp... - https://man.mtool.work/python/3.14/reference/
- re --- 正規表現操作 7419
- re --- 正規表現操作 ソースコード: Lib/re/ このモジュールは Perl に見られる正規表現マッチング操作と同様のものを提供します。 パターンおよび検索される文字列には、Unicode 文字列 ( str ) や 8 ビット文字列 ( bytes ) を使います。ただし、Unicode 文
...は、標準ライブラリの re モジュールと互換性のある API に加え、追加の機能とより充実した Unicode サポートを提供します。 Regular Expression Syntax 正規表現 (または RE) は、その表現にマッチ (match) する文字列の集合を指定します。このモジュールの関数を使えば、ある文...compile ( r "\d+\.\d*" ) インラインフラグの (?x) に相当します。 関数 re. compile ( pattern , flags = 0 ) Compile a regular expression pattern into a regular expression object , which can be used for matching using its match() , search() and other methods,...ージョン 3.13 で変更: PatternError の元の名前は error でした。 後方互換性のため、 error は別名として残されています。 Regular Expression Objects class re. Pattern re.compile() が返すコンパイル済み正規表現オブジェクトです。 パターンは、扱う文字列の型 ( str また... - https://man.mtool.work/python/3.14/library/re.html