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

Dev-Dev

開発覚書

おうち性教育はじめますおうち性教育はじめます2子育てベスト100だいじ だいじ どーこだ?医者が飲まない薬私が見た未来 完全版
  • HOME
  • にゃんこ大戦争
  • メガニケ
  • Privacy Policy

カテゴリー: Python

【Python】単ページの画像2枚を合わせて見開きページ画像にする方法

2021年3月8日 dev Python, 写真
【Python】単ページの画像2枚を合わせて見開きページ画像にする方法

MacのAutoMator アプリ と Pythonを使って、画像を左右2枚合わせて 1枚の画像にする方法です。

Continue reading

【Python】Pycharmでインデントの設定を変える方法

2020年4月2日 dev Pycharm, Python
【Python】Pycharmでインデントの設定を変える方法

Pycharmで、インデントにスペースとタブが混じっているとエラーになる。 TabError: inconsistent use of tabs and spaces in indentation そこで、Pycharm

Continue reading

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

2020年3月2日 dev Apple Script, Python, Shell
【Python】Pycharmでインデントの設定を変える方法

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

Continue reading

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

2020年2月26日 dev Python
【Python】Pycharmでインデントの設定を変える方法

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
【Python】Pycharmでインデントの設定を変える方法

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
【Python】Pycharmでインデントの設定を変える方法

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

Continue reading

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

2020年2月25日 dev Python, Shell
【Python】Pycharmでインデントの設定を変える方法

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
【Python】Pycharmでインデントの設定を変える方法

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
【Python】Pycharmでインデントの設定を変える方法

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

Continue reading

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

2020年2月20日 dev Python
【Python】Pycharmでインデントの設定を変える方法

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

Continue reading

投稿ナビゲーション

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

Google 検索

サイト内 検索

WordPress Theme: Tortuga by ThemeZee.