per page, with , order by , clip by
Results of 1 - 10 of about 12 for somefile (0.004 sec.)
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 12982
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ments with lists such as subprocess.run() with shell=False . 以下のイディオムは安全ではないかもしれません: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {} ' . format ( filename ) >>> print ( command ) # executed by a shell: boom! ls -l somefi ... さぎます: >>> from shlex import quote >>> command = 'ls -l {} ' . format ( quote ( filename )) >>> print ( command ) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {} ' . format ( quote ( command )) >>> print ( remote_command ) ssh home 'ls -l ... '"'"'somefile; rm -rf ~'"'"'' クォーティングは UNIX シェルならびに split() と互換です: >>> from shlex import split >>> remote_command = ...
https://man.mtool.work/python/3.14/library/shlex.html
shlex --- 単純な字句解析 — Python 3.14.8 ドキュメント 11992
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Unix-specific services » shlex --- 単純な字句解析 テーマ 自動 ライト ダーク | shlex --- 単純な字句解析 ¶ ソースコード: Lib/shlex.py ... ments with lists such as subprocess.run() with shell=False . 以下のイディオムは安全ではないかもしれません: >>> filename = 'somefile; rm -rf ~' >>> command = 'ls -l {} ' . format ( filename ) >>> print ( command ) # executed by a shell: boom! ls -l somefi ... さぎます: >>> from shlex import quote >>> command = 'ls -l {} ' . format ( quote ( filename )) >>> print ( command ) ls -l 'somefile; rm -rf ~' >>> remote_command = 'ssh home {} ' . format ( quote ( command )) >>> print ( remote_command ) ssh home 'ls -l ... '"'"'somefile; rm -rf ~'"'"'' クォーティングは UNIX シェルならびに split() と互換です: >>> from shlex import split >>> remote_command = ...
https://man.mtool.work/python/3.14/library/shlex.html
trace --- Python 文実行のトレースと追跡 — Python 3.14.8 ドキュメント 9250
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » trace --- Python 文実行のトレースと追跡 テーマ 自動 ライト ダーク | trace --- Python 文実行のトレースと追 ... ンからの使用 ¶ The trace module can be invoked from the command line. It can be as simple as python - m trace -- count - C . somefile . py ... これで、 somefile.py の実行中に import された Python モジュールの注釈付きリストがカレントディレクトリに生成されま ...
https://man.mtool.work/python/3.14/library/trace.html
trace --- Python 文実行のトレースと追跡 — Python 3.14.8 ドキュメント 9250
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Debugging and Profiling » trace --- Python 文実行のトレースと追跡 テーマ 自動 ライト ダーク | trace --- Python 文実行のトレースと追 ... ンからの使用 ¶ The trace module can be invoked from the command line. It can be as simple as python - m trace -- count - C . somefile . py ... これで、 somefile.py の実行中に import された Python モジュールの注釈付きリストがカレントディレクトリに生成されま ...
https://man.mtool.work/python/3.14/library/trace.html
email.iterators: イテレータ — Python 3.14.8 ドキュメント 8507
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.iterators : イテレータ テーマ 自動 ライ ... そのメッセージオブジェクト構造の content-type をインデントつきで表示します。例えば: >>> msg = email . message_from_file ( somefile ) >>> _structure ( msg ) multipart/mixed text/plain text/plain multipart/digest message/rfc822 text/plain message/rfc822 t ...
https://man.mtool.work/python/3.14/library/email.iterators.html
email.iterators: イテレータ — Python 3.14.8 ドキュメント 8507
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » インターネット上のデータの操作 » email --- 電子メールと MIME 処理のためのパッケージ » email.iterators : イテレータ テーマ 自動 ライ ... そのメッセージオブジェクト構造の content-type をインデントつきで表示します。例えば: >>> msg = email . message_from_file ( somefile ) >>> _structure ( msg ) multipart/mixed text/plain text/plain multipart/digest message/rfc822 text/plain message/rfc822 t ...
https://man.mtool.work/python/3.14/library/email.iterators.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 8012
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... 以上の使い方はしてはいけません。 例えば: from contextlib import suppress with suppress ( FileNotFoundError ): os . remove ( 'somefile.tmp' ) with suppress ( FileNotFoundError ): os . remove ( 'someotherfile.tmp' ) これは以下と等価です: try : os . remove ( ... 'somefile.tmp' ) except FileNotFoundError : pass try : os . remove ( 'someotherfile.tmp' ) except FileNotFoundError : pass このコンテ ...
https://man.mtool.work/python/3.14/library/contextlib.html
contextlib --- with 文コンテキスト用ユーティリティ — Python 3.14.8 ドキュメント 8012
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » Python ランタイムサービス » contextlib --- with 文コンテキスト用ユーティリティ テーマ 自動 ライト ダーク | contextlib --- with 文コ ... 以上の使い方はしてはいけません。 例えば: from contextlib import suppress with suppress ( FileNotFoundError ): os . remove ( 'somefile.tmp' ) with suppress ( FileNotFoundError ): os . remove ( 'someotherfile.tmp' ) これは以下と等価です: try : os . remove ( ... 'somefile.tmp' ) except FileNotFoundError : pass try : os . remove ( 'someotherfile.tmp' ) except FileNotFoundError : pass このコンテ ...
https://man.mtool.work/python/3.14/library/contextlib.html
gettext --- 多言語国際化サービス — Python 3.14.8 ドキュメント 7499
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 国際化 » gettext --- 多言語国際化サービス テーマ 自動 ライト ダーク | gettext --- 多言語国際化サービス ¶ ソースコード: Lib/gettext. ... が返され、それ以外なら plural が返されます。 以下に例を示します。: n = len ( os . listdir ( '.' )) cat = GNUTranslations ( somefile ) message = cat . ngettext ( 'There is %(num)d file in this directory' , 'There are %(num)d files in this directory' , n ) ...
https://man.mtool.work/python/3.14/library/gettext.html
gettext --- 多言語国際化サービス — Python 3.14.8 ドキュメント 7499
ナビゲーション 索引 モジュール | 次へ | 前へ | Python » 3.14.8 Documentation » The Python standard library » 国際化 » gettext --- 多言語国際化サービス テーマ 自動 ライト ダーク | gettext --- 多言語国際化サービス ¶ ソースコード: Lib/gettext. ... が返され、それ以外なら plural が返されます。 以下に例を示します。: n = len ( os . listdir ( '.' )) cat = GNUTranslations ( somefile ) message = cat . ngettext ( 'There is %(num)d file in this directory' , 'There are %(num)d files in this directory' , n ) ...
https://man.mtool.work/python/3.14/library/gettext.html
PREV 1 2 NEXT