コンテンツへスキップ
Dev-Dev

Dev-Dev

開発覚書

おうち性教育はじめます自宅学習の強化書子育てベスト100こどもSDGs無理ゲー社会SDBH
  • HOME
  • NANIGOTO
  • SDBH
  • Privacy Policy

カテゴリー: Python

【AppleScript】Python を使って「trim」する

2020年3月2日 dev Apple Script, Python, Shell
【AppleScript】Python を使って「trim」する

AppleScript → Shell → Python で、trimする。 log my trim({text_:" test "}) on trim(args) set {text_:aText}

Continue reading

【Python】別のpyファイルの関数を呼ぶ

2020年2月26日 dev Python
【AppleScript】Python を使って「trim」する

com / test.py def test1(arg1): return "test = " + arg1 呼び出し元 from com import test rtn = test.test1(&

Continue reading

【Apple Script】Shell、Python に引数を渡して戻り値を取得する方法

2020年2月25日 dev Apple Script, Python, Shell
【AppleScript】Python を使って「trim」する

Shell に引数を渡して戻り値を取得する Apple Script のコード set arg1 to "123" set test2 to do shell script " test1=

Continue reading

【Python】Shell、Apple Script に引数を渡して戻り値を取得する方法

2020年2月25日 dev Apple Script, Python, Shell
【AppleScript】Python を使って「trim」する

Python から Shell 経由で Apple Script のコードを使う。 Pythonファイル(test.py) import subprocess if __name__ == '__main__&

Continue reading

【Shell】Python に引数を渡して戻り値を取得する方法

2020年2月25日 dev Python, Shell
【AppleScript】Python を使って「trim」する

Python に引数を渡して戻り値を取得する Shell コマンド test1=$(python test.py 123) echo $test1 test.py import sys arg1 = "&quo

Continue reading

【Python】path.glob で複数の拡張子を検索する方法(大文字小文字の区別付き)

2020年2月21日 dev Python
【AppleScript】Python を使って「trim」する

Pyrhon で、path.glob を使って、ファイルを拡張子でフィルタリングしたい時は、 from pathlib import Path path = Path(image_dir) images = sorted

Continue reading

【Python】Automator のクイックアクション からの 「Google Photos API を使用した画像の自動アップロード」

2020年2月20日 dev Automator, Google Photos, Python
【AppleScript】Python を使って「trim」する

こちらのサイトを参考にして、 Python を使って、Google Photos に画像をアップロードするプログラム(google_photos_upload.py)を書いておく。 Google Cloud API から

Continue reading

【Python】日本語文字を使った時のエラー

2020年2月20日 dev Python
【AppleScript】Python を使って「trim」する

Pythonのコードの中で日本語を使うとエラーが出た。 アクション“シェルスクリプトを実行”でエラーが起きました: “ File "○○○.py", line 19 SyntaxError: Non-

Continue reading

【Python】pip で SSL関連のエラー

2020年2月20日 dev Python
【AppleScript】Python を使って「trim」する

pip でモジュールを追加しようとしたら、以下のような警告文が出た。 WARNING: pip is configured with locations that require TLS/SSL, however the

Continue reading

【Selenium】Chrome Driver を個別に指定してみる

2020年2月8日 dev Mac, Python, Selenium
【AppleScript】Python を使って「trim」する

python の Selenium で、chrome ブラウザを使っていると、 「ChromeDriverとChromeバージョン違いで起こるエラー」がよく起こる。

Continue reading

投稿ナビゲーション

«前の記事 1 2 3 4 … 7 次の記事»

Google 検索

サイト内 検索

WordPress Theme: Tortuga by ThemeZee.