per page, with , order by , clip by
Results of 1 - 2 of about 2 for zzz (0.001 sec.)
サブプロセス 11228
サブプロセス ソースコード: Lib/asyncio/subprocess.py , Lib/asyncio/base_subprocess.py このセクションはサブプロセスの生成と管理を行う高水準の async/await asyncio API について説明します。 以下は、 asyncio モジュールがどのようにシェルコマンドを ... ut] \n { stdout . decode () } ' ) if stderr : print ( f '[stderr] \n { stderr . decode () } ' ) asyncio . run ( run ( 'ls /zzz' )) このサンプルコードは以下を出力します: [ 'ls /zzz' exited with 1 ] [ stderr ] ls : / zzz : No such file or directory as ... 際、上の例を変更して複数のコマンドを同時に実行するのはごく簡単です。 async def main (): await asyncio . gather ( run ( 'ls /zzz' ), run ( 'sleep 1; echo "hello"' )) asyncio . run ( main ()) 使用例 節も参照してください。 サブプロセスの生成 async async ...
https://man.mtool.work/python/3.14/library/asyncio-subprocess.html
5. インポートシステム 7485
5. インポートシステム ある 1 つの module にある Python コードから他のモジュールを インポート することで、そこにあるコードへアクセスできるようになります。 import 文はインポート機構を動かす最も一般的な方法ですが、それが唯一の方法ではありません ... <> のどちらの構文も使えますが、相対インポートに使えるのは後者だけです。 この理由を、次の文で考えてみます。 import XXX.YYY.ZZZ この文を実行すると、 XXX.YYY.ZZZ を式として使えるようになる必要があります。 一方、 .moduleY は有効な式ではありません。 5.8 ...
https://man.mtool.work/python/3.14/reference/import.html
PREV 1 NEXT