Results of 1 - 10 of about 17 for findall (0.009 sec.)
- xml.etree.ElementTree --- ElementTree XML API — Python 3.14.8 ドキュメント 13207
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.etree.ElementTree --- ElementTree XML API テーマ 自動 ライト ダーク | xml.etree.ElementTree --- Elem
...me': 'Malaysia', 'direction': 'N'} {'name': 'Costa Rica', 'direction': 'W'} {'name': 'Colombia', 'direction': 'E'} Element.findall() はタグで現在の要素の直接の子要素のみ検索します。 Element.find() は特定のタグで 最初の 子要素を検索し、 Element.text は要...素のテキストコンテンツにアクセスします。 Element.get() は要素の属性にアクセスします: >>> for country in root . findall ( 'country' ): ... rank = country . find ( 'rank' ) . text ... name = country . get ( 'name' ) ... print ( name , rank ) ....を使って要素を削除することが出来ます。例えば rank が 50 より大きい全ての country を削除したい場合: >>> for country in root . findall ( 'country' ): ... # using root.findall() to avoid removal during traversal ... rank = int ( country . find ( 'rank' ) . t... - https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
- xml.etree.ElementTree --- ElementTree XML API — Python 3.14.8 ドキュメント 12897
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 構造化マークアップツール » xml.etree.ElementTree --- ElementTree XML API テーマ 自動 ライト ダーク | xml.etree.ElementTree --- Elem
...me': 'Malaysia', 'direction': 'N'} {'name': 'Costa Rica', 'direction': 'W'} {'name': 'Colombia', 'direction': 'E'} Element.findall() はタグで現在の要素の直接の子要素のみ検索します。 Element.find() は特定のタグで 最初の 子要素を検索し、 Element.text は要...素のテキストコンテンツにアクセスします。 Element.get() は要素の属性にアクセスします: >>> for country in root . findall ( 'country' ): ... rank = country . find ( 'rank' ) . text ... name = country . get ( 'name' ) ... print ( name , rank ) ....を使って要素を削除することが出来ます。例えば rank が 50 より大きい全ての country を削除したい場合: >>> for country in root . findall ( 'country' ): ... # using root.findall() to avoid removal during traversal ... rank = int ( country . find ( 'rank' ) . t... - https://man.mtool.work/python/3.14/library/xml.etree.elementtree.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 9345
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...plit and flags as positional arguments is deprecated. In future Python versions they will be keyword-only parameters . re. findall ( pattern , string , flags = 0 ) ¶ Return all non-overlapping matches of pattern in string , as a list of strings or tuple...eturn a list of tuples of strings matching the groups. Non-capturing groups do not affect the form of the result. >>> re . findall ( r '\bf[a-z]*' , 'which foot or hand fell fastest' ) ['foot', 'fell', 'fastest'] >>> re . findall ( r '(\w+)=(\d+)' , 'se...sion 3.4. Pattern. split ( string , maxsplit = 0 ) ¶ split() 関数にこのコンパイル済みパターンを使うのと同じです。 Pattern. findall ( string [ , pos [ , endpos ] ] ) ¶ findall() 関数にこのコンパイル済みパターンを使うのと似ていますが、オプションの pos およ... - https://man.mtool.work/python/3.14/library/re.html
- re --- 正規表現操作 — Python 3.14.8 ドキュメント 9345
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは
...plit and flags as positional arguments is deprecated. In future Python versions they will be keyword-only parameters . re. findall ( pattern , string , flags = 0 ) ¶ Return all non-overlapping matches of pattern in string , as a list of strings or tuple...eturn a list of tuples of strings matching the groups. Non-capturing groups do not affect the form of the result. >>> re . findall ( r '\bf[a-z]*' , 'which foot or hand fell fastest' ) ['foot', 'fell', 'fastest'] >>> re . findall ( r '(\w+)=(\d+)' , 'se...sion 3.4. Pattern. split ( string , maxsplit = 0 ) ¶ split() 関数にこのコンパイル済みパターンを使うのと同じです。 Pattern. findall ( string [ , pos [ , endpos ] ] ) ¶ findall() 関数にこのコンパイル済みパターンを使うのと似ていますが、オプションの pos およ... - https://man.mtool.work/python/3.14/library/re.html
- Regular expression HOWTO — Python 3.14.8 ドキュメント 8604
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは
...f the RE matches at the beginning of the string. search() 文字列を先頭から走査して、正規表現がどこにマッチするか調べます。 findall() Find all substrings where the RE matches, and return them as a list. finditer() Find all substrings where the RE matches...group ()) else : print ( 'No match' ) あるパターンにマッチするもの全てを返す Pattern インスタンスのメソッドが2つあります。 findall() はマッチした文字列のリストを返します: >>> p = re . compile ( r '\d+' ) >>> p . findall ( '12 drummers drumming, 11 piper...o regular expressions, now result in a SyntaxWarning and will eventually become a SyntaxError . See The backslash plague . findall() は結果を返す前に完全なリストを必ず生成してしまいます。いっぽう finditer() メソッドは マッチオブジェクト インスタンスのシ... - https://man.mtool.work/python/3.14/howto/regex.html
- Regular expression HOWTO — Python 3.14.8 ドキュメント 8604
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは
...f the RE matches at the beginning of the string. search() 文字列を先頭から走査して、正規表現がどこにマッチするか調べます。 findall() Find all substrings where the RE matches, and return them as a list. finditer() Find all substrings where the RE matches...group ()) else : print ( 'No match' ) あるパターンにマッチするもの全てを返す Pattern インスタンスのメソッドが2つあります。 findall() はマッチした文字列のリストを返します: >>> p = re . compile ( r '\d+' ) >>> p . findall ( '12 drummers drumming, 11 piper...o regular expressions, now result in a SyntaxWarning and will eventually become a SyntaxError . See The backslash plague . findall() は結果を返す前に完全なリストを必ず生成してしまいます。いっぽう finditer() メソッドは マッチオブジェクト インスタンスのシ... - https://man.mtool.work/python/3.14/howto/regex.html
- 索引 — Python 3.14.8 ドキュメント 7862
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – F f" formatted string literal f' formatted string literal f-string , [1] , [2] f-strings , [1] f_back (frame の属性) (フレーム属性) f_
...asswordMgr のメソッド) (urllib.request.HTTPPasswordMgrWithPriorAuth のメソッド) find_withtag() (tkinter.Canvas のメソッド) findall() (re モジュール) (re.Pattern のメソッド) (xml.etree.ElementTree.Element のメソッド) (xml.etree.ElementTree.ElementTree の... - https://man.mtool.work/python/3.14/genindex-F.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7862
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...正規表現を提供しています。正規表現は複雑な一致検索や操作に対して簡潔で最適化された解決策を提供します: >>> import re >>> re . findall ( r '\bf[a-z]*' , 'which foot or hand fell fastest' ) ['foot', 'fell', 'fastest'] >>> re . sub ( r '(\b[a-z]+) \1' , r '\1... - https://man.mtool.work/python/3.14/tutorial/stdlib.html
- 索引 — Python 3.14.8 ドキュメント 7862
- ナビゲーション 索引 モジュール | Python » 3.14.8 Documentation » 索引 テーマ 自動 ライト ダーク | Index – F f" formatted string literal f' formatted string literal f-string , [1] , [2] f-strings , [1] f_back (frame の属性) (フレーム属性) f_
...asswordMgr のメソッド) (urllib.request.HTTPPasswordMgrWithPriorAuth のメソッド) find_withtag() (tkinter.Canvas のメソッド) findall() (re モジュール) (re.Pattern のメソッド) (xml.etree.ElementTree.Element のメソッド) (xml.etree.ElementTree.ElementTree の... - https://man.mtool.work/python/3.14/genindex-F.html
- 10. Brief tour of the standard library — Python 3.14.8 ドキュメント 7862
- ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python チュートリアル » 10. Brief tour of the standard library テーマ 自動 ライト ダーク | 10. Brief tour of the standard library ¶ 10.1. Operating system interf
...正規表現を提供しています。正規表現は複雑な一致検索や操作に対して簡潔で最適化された解決策を提供します: >>> import re >>> re . findall ( r '\bf[a-z]*' , 'which foot or hand fell fastest' ) ['foot', 'fell', 'fastest'] >>> re . sub ( r '(\b[a-z]+) \1' , r '\1... - https://man.mtool.work/python/3.14/tutorial/stdlib.html