皆さんこんにちわ お元気ですか?私はきついです。 さて、Pythonにはosと呼ばれるライブラリが存在しています。 研究する時にファイル分割してトレーニングとテストを探すとかやったりしますね。 割と大事です。 以下の動作は一部分です。他にもありますが、これぐらい覚えておけば困らないでしょう(多分)。 動作説明 import os とした上で Directory 関数と動作 関数 動作 os.getcwd 現在のカレントディレクトリを表示 os.dirname ディレクトリを表示 os.chdir ディレクトリを移動する os.mkdir ディレクトリを作る os.listdir ディレクトリの中を全てリストにする os.path.isdir ディレクトリかどうか。あればTrue,なければFalse ソースコード >>> import os >>> os.getcwd() '/Users/T