Results of 1 - 10 of about 14 for matches (0.009 sec.)
- difflib --- 差分の計算の補助 12901
- difflib --- 差分の計算の補助 ソースコード: Lib/difflib.py このモジュールはシーケンスを比較するクラスと関数を提供します。 その多くは、テキスト行のシーケンス (文字列のリストや ファイルオブジェクト など) を比較し、相違点を報告する 差分 (diff)
...n ! eggy ! hamster guido より詳細な例は、 difflib のコマンドラインインターフェース を参照してください。 difflib. get_close_matches ( word , possibilities , n = 3 , cutoff = 0.6 ) 「十分」なマッチの上位のリストを返します。 word はマッチさせたいシーケンス...チした上位(多くても n 個)は、類似度のスコアに応じて(一番似たものを先頭に)ソートされたリストとして返されます。 >>> get_close_matches ( 'appel' , [ 'ape' , 'apple' , 'peach' , 'puppy' ]) ['apple', 'ape'] >>> import keyword >>> get_close_matches ( 'wheel' ,...keyword . kwlist ) ['while'] >>> get_close_matches ( 'pineapple' , keyword . kwlist ) [] >>> get_close_matches ( 'accept' , keyword . kwlist ) ['except'] difflib. ndiff ( a... - https://man.mtool.work/python/3.14/library/difflib.html
- readline --- GNU readline のインターフェース 12901
- readline --- GNU readline のインターフェース readline モジュールには、Python インタープリタでの補完や履歴ファイルの読み書きを容易にする関数が定義されています。 このモジュールは直接使うことも、対話プロンプトで Python 識別子の補完を提供する r
...から始まる補完結果として次に来そうなものを返さなければなりません。 設定した補完関数は、基盤となるライブラリの rl_completion_matches() に渡される entry_func コールバックから呼び出されます。 text 文字列は、基盤となるライブラリの rl_attempted_completion_fun...らの関数は基盤となるライブラリの rl_completer_word_break_characters 変数にアクセスします。 readline. set_completion_display_matches_hook ( [ function ] ) 補完候補を表示する関数を設定または削除します。 function を指定すると新しい補完候補表示関数として使わ...れます。 省略するか None を指定すると、設定済みの関数が削除されます。 基盤となるライブラリの rl_completion_display_matches_hook コールバックを設定または解除します。 補完候補表示関数は候補を表示する必要があるたびに function(substitution, [matches... - https://man.mtool.work/python/3.14/library/readline.html
- 正規表現 HOWTO 9330
- 正規表現 HOWTO Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは re モジュールを使って Python で正規表現を扱うための導入のチュートリアルです。ライブラリレファレンスの正規表現の節よりもやさしい入門ドキュメントを用意しています
...重要なものについて扱います; 完全なリストは re ドキュメントを参照して下さい。 メソッド/属性 目的 match() Determine if the RE matches at the beginning of the string. search() 文字列を先頭から走査して、正規表現がどこにマッチするか調べます。 findall() 正規表...of the match. span() returns both start and end indexes in a single tuple. Since the match() method only checks if the RE matches at the start of a string, start() will always be zero. However, the search() method of patterns scans through the string,...文字列メソッドで解決できるか考えましょうということです。 match() versus search() The match() function only checks if the RE matches at the beginning of the string while search() will scan forward through the string for a match. It's important to keep thi... - https://man.mtool.work/python/3.14/howto/regex.html
- re --- 正規表現操作 8542
- re --- 正規表現操作 ソースコード: Lib/re/ このモジュールは Perl に見られる正規表現マッチング操作と同様のものを提供します。 パターンおよび検索される文字列には、Unicode 文字列 ( str ) や 8 ビット文字列 ( bytes ) を使います。ただし、Unicode 文
...s' あるグループが複数回マッチすると、その最後のマッチにのみアクセスできます: >>> m = re . match ( r "(..)+" , "a1b2c3" ) # Matches 3 times. >>> m . group ( 1 ) # Returns only the last match. 'c3' Match. __getitem__ ( g ) これは m.group(g) と同等です。こ...rch ( "^a" , "abcdef" ) # Match <re.Match object; span=(0, 1), match='a'> Note however that in MULTILINE mode match() only matches at the beginning of the string, whereas using search() with a regular expression beginning with '^' will match at the begi... - https://man.mtool.work/python/3.14/library/re.html
- urllib パッケージを使ってインターネット上のリソースを取得するには 8157
- urllib パッケージを使ってインターネット上のリソースを取得するには Author : Michael Foord はじめに Related Articles 同じように Python でインターネットリソースを取得するのに以下の記事が役に立ちます: Basic 認証 Basic 認証 についてのチュートリア
...en' , 'Request forbidden -- authorization will ' 'not help' ), < HTTPStatus . NOT_FOUND : 404 > : ( 'Not Found' , 'Nothing matches the given URI' ), ... < HTTPStatus . IM_A_TEAPOT : 418 > : ( "I'm a Teapot" , 'Server refuses to brew coffee because ' 'it... - https://man.mtool.work/python/3.14/howto/urllib2.html
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー 8157
- ssl --- ソケットオブジェクト用の TLS/SSL ラッパー Source code: Lib/ssl.py このモジュールは、クライアント側とサーバー側の両方のネットワークソケットで Transport Layer Security (「Secure Sockets Layer」としてもよく知られています) による暗号化と
...is loaded, OpenSSL's default TLS 1.3 cipher suite order selects a SHA-384 suite instead, so the PSK is declined even if it matches. 使用例: context = ssl . SSLContext ( ssl . PROTOCOL_TLS_SERVER ) context . maximum_version = ssl . TLSVersion . TLSv1_2 c...sufficient; you also have to check that the server certificate, which can be obtained by calling SSLSocket.getpeercert() , matches the desired service. For many protocols and applications, the service can be identified by the hostname. This common check... - https://man.mtool.work/python/3.14/library/ssl.html
- string --- 一般的な文字列操作 8157
- string --- 一般的な文字列操作 ソースコード: Lib/string/__init__.py 参考 テキストシーケンス型 --- str 文字列メソッド 文字列定数 このモジュールで定義されている定数は以下の通りです: string. ascii_letters 後述の ascii_lowercase と ascii_upperca
...e result should be correctly rounded to a given precision p of digits after the decimal point. The rounding mode for float matches that of the round() builtin. For Decimal , the rounding mode of the current context will be used. complex で使える表現型は... - https://man.mtool.work/python/3.14/library/string.html
- 組み込み型 7754
- 組み込み型 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主要な組み込み型は、数値、シーケンス、マッピング、クラス、インスタンス、および例外です。 コレクションクラスには、ミュータブルなものがあります。コレクシ
...ormats, the result should be correctly rounded to a given precision p of digits after the decimal point. The rounding mode matches that of the round() builtin. 注釈: 別の形式を指定(訳注: 変換フラグ # を使用)すると 8 進数を表す接頭辞 ( '0o' ) が最初の数... - https://man.mtool.work/python/3.14/builtins/stdtypes.html
- decimal --- 10進固定小数点と浮動小数点の演算 7754
- decimal --- 10進固定小数点と浮動小数点の演算 ソースコード: Lib/decimal.py decimal モジュールは、高速で正しく丸められる 10 進浮動小数点演算をサポートします。 float データ型に比べて次のような利点があります: Decimal は「人間を念頭に設計された
...ec -= 2 return + s # unary plus applies the new precision def exp ( x ): """Return e raised to the power of x. Result type matches input type. >>> print(exp(Decimal(1))) 2.718281828459045235360287471 >>> print(exp(Decimal(2))) 7.389056098930650227230427... - https://man.mtool.work/python/3.14/library/decimal.html
- pathlib --- オブジェクト指向のファイルシステムパス 7754
- pathlib --- オブジェクト指向のファイルシステムパス Added in version 3.4. ソースコード: Lib/pathlib/ このモジュールはファイルシステムのパスを表すクラスを提供していて、様々なオペレーティングシステムについての適切な意味論をそれらのクラスに持た
...が変更されます。 パターン言語 full_match() 、 glob() 、 rglob() のパターンでは、次のワイルドカードを使えます: ** (要素全体) Matches any number of file or directory segments, including zero. Note that in full_match() , " a/** " does not match " a ", where... - https://man.mtool.work/python/3.14/library/pathlib.html