Results of 1 - 10 of about 143 for pattern (0.009 sec.)
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 11148
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...ENT subject_expr : flexible_expression "," [ flexible_expression_list [ ',' ]] | assignment_expression case_block : 'case' patterns [ guard ] ":" suite 注釈 このセクションでは、一重引用符で囲まれているものは ソフトキーワード を表します。 パターンマッチン.... print ( 'Case 2' ) ... case ( 100 , y ): # Matches and binds y to 200 ... print ( f 'Case 3, y: { y } ' ) ... case _ : # Pattern not attempted ... print ( 'Case 4, I match anything!' ) ... Case 3, y: 200 この例では、 if flag がガードです。 ガードについ...NFを拡張した文法記法を使用します。 SEP.RULE+ という表記は RULE (SEP RULE)* の略です。 !RULE は否定先読みの条件を表します。 patterns のトップレベルの構文は以下の通りです: patterns : open_sequence_pattern | pattern pattern : as_pattern | or_pattern closed... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 8. 複合文 (compound statement) — Python 3.14.8 ドキュメント 11148
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 8. 複合文 (compound statement) テーマ 自動 ライト ダーク | 8. 複合文 (compound statement) ¶ 複合文には、他の文 (のグループ) が入ります;
...ENT subject_expr : flexible_expression "," [ flexible_expression_list [ ',' ]] | assignment_expression case_block : 'case' patterns [ guard ] ":" suite 注釈 このセクションでは、一重引用符で囲まれているものは ソフトキーワード を表します。 パターンマッチン.... print ( 'Case 2' ) ... case ( 100 , y ): # Matches and binds y to 200 ... print ( f 'Case 3, y: { y } ' ) ... case _ : # Pattern not attempted ... print ( 'Case 4, I match anything!' ) ... Case 3, y: 200 この例では、 if flag がガードです。 ガードについ...NFを拡張した文法記法を使用します。 SEP.RULE+ という表記は RULE (SEP RULE)* の略です。 !RULE は否定先読みの条件を表します。 patterns のトップレベルの構文は以下の通りです: patterns : open_sequence_pattern | pattern pattern : as_pattern | or_pattern closed... - https://man.mtool.work/python/3.14/reference/compound_stmts.html
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 11029
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...lock + DEDENT subject_expr : | star_named_expression ',' star_named_expressions ? | named_expression case_block : | "case" patterns guard ? ':' block guard : 'if' named_expression patterns : | open_sequence_pattern | pattern pattern : | as_pattern | or_...pattern as_pattern : | or_pattern 'as' pattern_capture_target or_pattern : | '|' . closed_pattern + closed_pattern : | literal_pattern | capt...ure_pattern | wildcard_pattern | value_pattern | group_pattern | sequence_pattern | mapping_pattern | class_pattern # Literal patterns... - https://man.mtool.work/python/3.14/reference/grammar.html
- 10. 完全な文法仕様 — Python 3.14.8 ドキュメント 11029
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python 言語リファレンス » 10. 完全な文法仕様 テーマ 自動 ライト ダーク | 10. 完全な文法仕様 ¶ 以下に示すのは Python の完全な文法です。CPython のパーサを生成するた
...lock + DEDENT subject_expr : | star_named_expression ',' star_named_expressions ? | named_expression case_block : | "case" patterns guard ? ':' block guard : 'if' named_expression patterns : | open_sequence_pattern | pattern pattern : | as_pattern | or_...pattern as_pattern : | or_pattern 'as' pattern_capture_target or_pattern : | '|' . closed_pattern + closed_pattern : | literal_pattern | capt...ure_pattern | wildcard_pattern | value_pattern | group_pattern | sequence_pattern | mapping_pattern | class_pattern # Literal patterns... - https://man.mtool.work/python/3.14/reference/grammar.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 9998
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
..._offset , int ? end_lineno , int ? end_col_offset ) withitem = ( expr context_expr , expr ? optional_vars ) match_case = ( pattern pattern , expr ? guard , stmt * body ) pattern = MatchValue ( expr value ) | MatchSingleton ( constant value ) | MatchSequ...ence ( pattern * patterns ) | MatchMapping ( expr * keys , pattern * patterns , identifier ? rest ) | MatchClass ( expr cls , pattern * p...atterns , identifier * kwd_attrs , pattern * kwd_patterns ) | MatchStar ( identifier ? name ) -- The optional "rest" MatchMapping parameter handles capturing extra m... - https://man.mtool.work/python/3.14/library/ast.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 9998
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...match with a{3,5} capturing 5, then 4 'a' s by backtracking and then the final 2 'a' s are matched by the final aa in the pattern. x{m,n}+ is equivalent to (?>x{m,n}) . Added in version 3.11. \ 特殊文字をエスケープ ( '*' や '?' などの文字にマッチできる....) Attempts to match ... as if it was a separate regular expression, and if successful, continues to match the rest of the pattern following it. If the subsequent pattern fails to match, the stack can only be unwound to a point before the (?>...) becaus...マッチしなければなりません。否定後読みアサーションで始まるパターンは検索される文字列の先頭でマッチできます。 (?(id/name)yes-pattern|no-pattern) Will try to match with yes-pattern if the group with given id or name exists, and with no-pattern if it doesn'... - https://man.mtool.work/python/3.14/library/re.html
- ast --- Abstract syntax trees — Python 3.14.8 ドキュメント 9998
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python言語サービス » ast --- Abstract syntax trees テーマ 自動 ライト ダーク | ast --- Abstract syntax trees ¶ ソースコード: Lib/as
..._offset , int ? end_lineno , int ? end_col_offset ) withitem = ( expr context_expr , expr ? optional_vars ) match_case = ( pattern pattern , expr ? guard , stmt * body ) pattern = MatchValue ( expr value ) | MatchSingleton ( constant value ) | MatchSequ...ence ( pattern * patterns ) | MatchMapping ( expr * keys , pattern * patterns , identifier ? rest ) | MatchClass ( expr cls , pattern * p...atterns , identifier * kwd_attrs , pattern * kwd_patterns ) | MatchStar ( identifier ? name ) -- The optional "rest" MatchMapping parameter handles capturing extra m... - https://man.mtool.work/python/3.14/library/ast.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 9998
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...match with a{3,5} capturing 5, then 4 'a' s by backtracking and then the final 2 'a' s are matched by the final aa in the pattern. x{m,n}+ is equivalent to (?>x{m,n}) . Added in version 3.11. \ 特殊文字をエスケープ ( '*' や '?' などの文字にマッチできる....) Attempts to match ... as if it was a separate regular expression, and if successful, continues to match the rest of the pattern following it. If the subsequent pattern fails to match, the stack can only be unwound to a point before the (?>...) becaus...マッチしなければなりません。否定後読みアサーションで始まるパターンは検索される文字列の先頭でマッチできます。 (?(id/name)yes-pattern|no-pattern) Will try to match with yes-pattern if the group with given id or name exists, and with no-pattern if it doesn'... - https://man.mtool.work/python/3.14/library/re.html
- fnmatch --- Unix のファイル名パターンマッチ — Python 3.14.8 ドキュメント 7368
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » fnmatch --- Unix のファイル名パターンマッチ テーマ 自動 ライト ダーク | fnmatch --- Unix のファ
...ュールでドキュメント化されている) 正規表現とは 異なります 。シェル形式のワイルドカードで使われる特殊文字は、次のとおりです。 Pattern 意味 * すべてにマッチします ? 任意の一文字にマッチします [seq] seq にある任意の文字にマッチします [!seq] seq にない任意の文...ァイル名はこのモジュールに固有ではなくて、 * と ? のパターンでマッチします。 Unless stated otherwise, "filename string" and "pattern string" either refer to str or ISO-8859-1 encoded bytes objects. Note that the functions documented below do not allow to...mix a bytes pattern with a str filename, and vice-versa. Finally, note that @functools.lru_cache with a maxsize of 32768 is used to cache the... - https://man.mtool.work/python/3.14/library/fnmatch.html
- fnmatch --- Unix のファイル名パターンマッチ — Python 3.14.8 ドキュメント 7368
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » ファイルとディレクトリへのアクセス » fnmatch --- Unix のファイル名パターンマッチ テーマ 自動 ライト ダーク | fnmatch --- Unix のファ
...ュールでドキュメント化されている) 正規表現とは 異なります 。シェル形式のワイルドカードで使われる特殊文字は、次のとおりです。 Pattern 意味 * すべてにマッチします ? 任意の一文字にマッチします [seq] seq にある任意の文字にマッチします [!seq] seq にない任意の文...ァイル名はこのモジュールに固有ではなくて、 * と ? のパターンでマッチします。 Unless stated otherwise, "filename string" and "pattern string" either refer to str or ISO-8859-1 encoded bytes objects. Note that the functions documented below do not allow to...mix a bytes pattern with a str filename, and vice-versa. Finally, note that @functools.lru_cache with a maxsize of 32768 is used to cache the... - https://man.mtool.work/python/3.14/library/fnmatch.html