2016-05-14 Python Pythonでファイルが存在するかどうかを確認する方法 123456import osif os.path.exists('/path/to/file'): print('The file exists!')else: print('The file does not exist.') 次の記事 Linuxでファイルを圧縮・解凍する方法 前の記事 Linuxでファイル内容をテキストとして表示する方法