ターミナルでpython -V って打つとバージョンわかる。pyenvはまた別のお話。 モチベーション 作ってみたかったので作りました。 今回は、デスクトップに置いたこのファイルをダブルクリックしたらSlackが起動するものを作ります。 Slackをそのまま起動すれば ...
Python3.11でsubprocess.runを使ってみたが沼にハマった。この記事は沼から抜け出した備忘録だ。 まず、my_source.zshという名前のファイルを作り、そこに自作の関数を置いていた。my_source.zsh中身はこれだ。 function my_function() { echo my_function called } そして、subprocess.run ...
Python scripts that deal with subprocess module usually need to prepare a list of string arguments for use with subprocess.run() (or similar). Sometimes you need to perform some quick n' dirty print() ...
Think it's complex to connect your Python program to the UNIX shell? Think again! In past articles, I've looked into concurrency in Python via threads (see "Thinking Concurrently: How Modern Network ...
一部の結果でアクセス不可の可能性があるため、非表示になっています。
アクセス不可の結果を表示する