Results of 1 - 10 of about 197 for expression (0.009 sec.)
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 11845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...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
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 11845
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...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) — Python 3.14.8 ドキュメント 10787
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...xtensions must define their own conversion behavior. 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. Built-in constants ¶ The keywords True , False , and None name built-in constants . The token ... name...orld' "helloworld" This feature is defined at the syntactical level, so it only works with literals. To concatenate string expressions at run time, the '+' operator may be used: >>> greeting = "Hello" >>> space = " " >>> name = "Blaise" >>> print ( greetin... - https://man.mtool.work/python/3.14/reference/expressions.html
- 6. 式 (expression) — Python 3.14.8 ドキュメント 10787
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 6. 式 (expression) テーマ 自動 ライト ダーク | 6. 式 (expression) ¶ この章では、Python の式における個々の要素の意味について解説します。
...xtensions must define their own conversion behavior. 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. Built-in constants ¶ The keywords True , False , and None name built-in constants . The token ... name...orld' "helloworld" This feature is defined at the syntactical level, so it only works with literals. To concatenate string expressions at run time, the '+' operator may be used: >>> greeting = "Hello" >>> space = " " >>> name = "Blaise" >>> print ( greetin... - https://man.mtool.work/python/3.14/reference/expressions.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 8249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 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 ] The starred_expression_list expression is evaluated once; it should yield an iterable... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 8249
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 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 ] The starred_expression_list expression is evaluated once; it should yield an iterable... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8087
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...一の行内には、複数の単純文をセミコロンで区切って入れることができます。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | augmented_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt | retu...| 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 でなければ... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- 7. 単純文 (simple statement) — Python 3.14.8 ドキュメント 8087
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 7. 単純文 (simple statement) テーマ 自動 ライト ダーク | 7. 単純文 (simple statement) ¶ 単純文とは、単一の論理行内に収められる文です。単
...一の行内には、複数の単純文をセミコロンで区切って入れることができます。単純文の構文は以下の通りです: simple_stmt : expression_stmt | assert_stmt | assignment_stmt | augmented_assignment_stmt | annotated_assignment_stmt | pass_stmt | del_stmt | retu...| 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 でなければ... - https://man.mtool.work/python/3.14/reference/simple_stmts.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...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
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 7720
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
...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