スニペット集
公開日:
更新日:
フォルダがなければ作成
import os if not os.path.exists('output'): os.mkdir('output')
異なるディレクトリにあるモジュールインポート
import sys LIB_DIR = "{モジュールが存在するパス}" sys.path.append(LIB_DIR) # インポート可能 import something # ...