per page, with , order by , clip by
Results of 1 - 10 of about 135 for split (0.016 sec.)
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 12215
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ョンのための実行制御ファイルのような小規模言語を書く上で便利です。 The shlex module defines the following functions: shlex. split ( s , comments = False , posix = True ) ¶ シェルに似た文法を使って、文字列 s を分割します。 comments が False (デフォルト値 ... バージョン 3.12 で変更: Passing None for s argument now raises an exception, rather than reading sys.stdin . shlex. join ( split_command ) ¶ Concatenate the tokens of the list split_command and return a string. This function is the inverse of split() ... command )) >>> print ( remote_command ) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"'' クォーティングは UNIX シェルならびに split() と互換です: >>> from shlex import split >>> remote_command = split ( remote_command ) >>> remote_command ['ssh', 'home', ...
https://man.mtool.work/python/3.14/library/shlex.html
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 12215
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ョンのための実行制御ファイルのような小規模言語を書く上で便利です。 The shlex module defines the following functions: shlex. split ( s , comments = False , posix = True ) ¶ シェルに似た文法を使って、文字列 s を分割します。 comments が False (デフォルト値 ... バージョン 3.12 で変更: Passing None for s argument now raises an exception, rather than reading sys.stdin . shlex. join ( split_command ) ¶ Concatenate the tokens of the list split_command and return a string. This function is the inverse of split() ... command )) >>> print ( remote_command ) ssh home 'ls -l '"'"'somefile; rm -rf ~'"'"'' クォーティングは UNIX シェルならびに split() と互換です: >>> from shlex import split >>> remote_command = split ( remote_command ) >>> remote_command ['ssh', 'home', ...
https://man.mtool.work/python/3.14/library/shlex.html
組み込み型 — Python 3.14.8 ドキュメント 10193
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主 ... tr.startswith() bytes.startswith() str.endswith() bytes.endswith() str.count() bytes.count() str.replace() bytes.replace() Splitting and Joining str.split() str.rsplit() bytes.split() bytes.rsplit() str.splitlines() bytes.splitlines() str.partition() ... mple: >>> ', ' . join ([ 'spam' , 'spam' , 'spam' ]) 'spam, spam, spam' >>> '-' . join ( 'Python' ) 'P-y-t-h-o-n' See also split() . str. ljust ( width , fillchar = ' ' , / ) ¶ 長さ width の左揃えした文字列を返します。パディングは指定された fillchar ( ... on's Flying", ' ', 'Circus') >>> 'Monty Python' . rpartition ( '-' ) ('', '', 'Monty Python') See also partition() . str. rsplit ( sep = None , maxsplit = -1 ) ¶ Return a list of the words in the string, using sep as the delimiter string. If maxsplit ...
https://man.mtool.work/python/3.14/builtins/stdtypes.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 9399
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ ... '-+' ) >>> parser . add_argument ( '+f' ) >>> parser . add_argument ( '++bar' ) >>> parser . parse_args ( '+f X ++bar Y' . split ()) Namespace(bar='Y', f='X') prefix_chars= 引数のデフォルトは '-' です。 - を含まない文字セットを指定すると、 -f/--foo オ ... ault=None, type=<class 'int'>, choices=None, help=None, metavar=None) >>> try : ... parser . parse_args ( '--integers a' . split ()) ... except argparse . ArgumentError : ... print ( 'Catching an argumentError' ) ... Catching an argumentError Added in ... = 'store_false' ) >>> parser . add_argument ( '--baz' , action = 'store_false' ) >>> parser . parse_args ( '--foo --bar' . split ()) Namespace(foo=True, bar=False, baz=True) 'append' - This appends each argument value to a list. It is useful for allow ...
https://man.mtool.work/python/3.14/library/argparse.html
argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー — Pytho... 9399
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » コマンドラインインターフェースライブラリ » argparse --- コマンドラインオプションや引数、サブコマンド向けのパーサー テーマ 自動 ライ ... '-+' ) >>> parser . add_argument ( '+f' ) >>> parser . add_argument ( '++bar' ) >>> parser . parse_args ( '+f X ++bar Y' . split ()) Namespace(bar='Y', f='X') prefix_chars= 引数のデフォルトは '-' です。 - を含まない文字セットを指定すると、 -f/--foo オ ... ault=None, type=<class 'int'>, choices=None, help=None, metavar=None) >>> try : ... parser . parse_args ( '--integers a' . split ()) ... except argparse . ArgumentError : ... print ( 'Catching an argumentError' ) ... Catching an argumentError Added in ... = 'store_false' ) >>> parser . add_argument ( '--baz' , action = 'store_false' ) >>> parser . parse_args ( '--foo --bar' . split ()) Namespace(foo=True, bar=False, baz=True) 'append' - This appends each argument value to a list. It is useful for allow ...
https://man.mtool.work/python/3.14/library/argparse.html
組み込み型 — Python 3.14.8 ドキュメント 9182
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python built-ins reference » 組み込み型 テーマ 自動 ライト ダーク | 組み込み型 ¶ 以下のセクションでは、インタプリタに組み込まれている標準型について記述します。 主 ... tr.startswith() bytes.startswith() str.endswith() bytes.endswith() str.count() bytes.count() str.replace() bytes.replace() Splitting and Joining str.split() str.rsplit() bytes.split() bytes.rsplit() str.splitlines() bytes.splitlines() str.partition() ... mple: >>> ', ' . join ([ 'spam' , 'spam' , 'spam' ]) 'spam, spam, spam' >>> '-' . join ( 'Python' ) 'P-y-t-h-o-n' See also split() . str. ljust ( width , fillchar = ' ' , / ) ¶ 長さ width の左揃えした文字列を返します。パディングは指定された fillchar ( ... on's Flying", ' ', 'Circus') >>> 'Monty Python' . rpartition ( '-' ) ('', '', 'Monty Python') See also partition() . str. rsplit ( sep = None , maxsplit = -1 ) ¶ Return a list of the words in the string, using sep as the delimiter string. If maxsplit ...
https://man.mtool.work/python/3.14/builtins/stdtypes.html
Regular expression HOWTO — Python 3.14.8 ドキュメント 8725
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは ... 正規表現は文字列を様々な方法で変更するのにもよく使われます。変更には以下のパターンメソッドが利用されます: メソッド/属性 目的 split() 文字列をリストに分割する、正規表現がマッチした全ての場所で分割を行う sub() 正規表現にマッチした全ての文字列を発見し、別の ... 文字列に置き換えます subn() sub() と同じことをしますが、新しい文字列と置き換えの回数を返します Splitting strings ¶ split() メソッドは文字列を正規表現にマッチした場所で分割し、リストで返却します。文字列の split() メソッドに似 ... てはいますが、もっとずっと一般化したデリミタで分割出来ます; 文字列の split() メソッドは単に空白文字か固定文字列で分割出来るだけです。ご想像通り、モジュールレベルの re.split() 関数もあります。 . spl ...
https://man.mtool.work/python/3.14/howto/regex.html
Regular expression HOWTO — Python 3.14.8 ドキュメント 8725
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » Python HOWTO » Regular expression HOWTO テーマ 自動 ライト ダーク | Regular expression HOWTO ¶ Author : A.M. Kuchling < amk @ amk . ca > 概要 このドキュメントは ... 正規表現は文字列を様々な方法で変更するのにもよく使われます。変更には以下のパターンメソッドが利用されます: メソッド/属性 目的 split() 文字列をリストに分割する、正規表現がマッチした全ての場所で分割を行う sub() 正規表現にマッチした全ての文字列を発見し、別の ... 文字列に置き換えます subn() sub() と同じことをしますが、新しい文字列と置き換えの回数を返します Splitting strings ¶ split() メソッドは文字列を正規表現にマッチした場所で分割し、リストで返却します。文字列の split() メソッドに似 ... てはいますが、もっとずっと一般化したデリミタで分割出来ます; 文字列の split() メソッドは単に空白文字か固定文字列で分割出来るだけです。ご想像通り、モジュールレベルの re.split() 関数もあります。 . spl ...
https://man.mtool.work/python/3.14/howto/regex.html
re --- 正規表現操作 — Python 3.14.8 ドキュメント 8172
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは ... ags value. Values can be any of the flags variables, combined using bitwise OR (the | operator). Added in version 3.4. re. split ( pattern , string , maxsplit = 0 , flags = 0 ) ¶ string を、出現した pattern で分割します。 pattern 中でキャプチャの丸括弧 ... が使われていれば、パターン中の全てのグループのテキストも結果のリストの一部として返されます。 maxsplit が 0 でなければ、分割は最大 maxsplit 回起こり、残りの文字列はリストの最終要素として返されます。 >>> re . split ( r '\W+' , ... 'Words, words, words.' ) ['Words', 'words', 'words', ''] >>> re . split ( r '(\W+)' , 'Words, words, words.' ) ['Words', ', ', 'words', ', ', 'words', '.', ''] >>> re . split ( r '\W+' , 'Words, ...
https://man.mtool.work/python/3.14/library/re.html
re --- 正規表現操作 — Python 3.14.8 ドキュメント 8172
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » テキスト処理サービス » re --- 正規表現操作 テーマ 自動 ライト ダーク | re --- 正規表現操作 ¶ ソースコード: Lib/re/ このモジュールは ... ags value. Values can be any of the flags variables, combined using bitwise OR (the | operator). Added in version 3.4. re. split ( pattern , string , maxsplit = 0 , flags = 0 ) ¶ string を、出現した pattern で分割します。 pattern 中でキャプチャの丸括弧 ... が使われていれば、パターン中の全てのグループのテキストも結果のリストの一部として返されます。 maxsplit が 0 でなければ、分割は最大 maxsplit 回起こり、残りの文字列はリストの最終要素として返されます。 >>> re . split ( r '\W+' , ... 'Words, words, words.' ) ['Words', 'words', 'words', ''] >>> re . split ( r '(\W+)' , 'Words, words, words.' ) ['Words', ', ', 'words', ', ', 'words', '.', ''] >>> re . split ( r '\W+' , 'Words, ...
https://man.mtool.work/python/3.14/library/re.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT