os.split

こつこつPython

【毎日Python】Pythonでディレクトリパスとファイル名に分割|os.path.split

import os current_dir = os.getcwd() path = os.path.join(current_dir, "sample") file_path = os.path.join(path, "A.csv") f...